English 中文(简体)
pdf 计算机台表上的下载链接
原标题:pdf download link in ipad app not working
  • 时间:2012-04-25 05:44:01
  •  标签:
  • ipad
  • pdf

i have a standalone offline html application which is not meant for deployment on a server. i have converted that html application into an ipad app.

The application has links to local pdf and excel files. I have provided links to download those file in the application. It works fine in browser.

But in ipad the links to download pdf report and excel sheet reports do not work (even if I tap on the links pdf doesn t show up.It behaves like a dead link!)

任何建议都受到高度赞赏!

问题回答

For downloading pdf try following:

1) Create one button to call printTapped() method (UIBarButtonItem is good for this here)

<>strong>Tapped()

- (void)printTapped 
{  


    NSData *pdfdata = [[NSData alloc] initWithContentsOfURL:@"try your url from where you want to download the pdf"];

    //Store the Data locally as PDF File

    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);
    NSString *docsDirectory = [paths objectAtIndex:0];

    NSString *filePath = [docsDirectory stringByAppendingPathComponent:[NSString stringWithFormat:@"%@.pdf",app.stritreejob]];

      //=======//
}




相关问题
How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Extract everything from PDF [closed]

Looking for solution to extract content from a PDF file (using console tool or a library). It will be used on server to produce on-line e-books from uploaded PDF files. Need to extract following ...

PDF compression How does Adobe do it?

This is a bit more of a fun question than a serious one, but how does the Adobe PDF format make documents so... portable? I just created a small Word document, 235kb in size, containing multiple ...

Exporting HTML Tables

How can I export an HTML table in my page as PDF and/or XLS? (preferably using JS (+jquery))

Using Java PDFBox library to write Russian PDF

I am using a Java library called PDFBox trying to write text to a PDF. It works perfect for English text, but when i tried to write Russian text inside the PDF the letters appeared so strange. It ...

HTML --> PDF with PHP [duplicate]

Possible Duplicate: Convert HTML + CSS to PDF with PHP? How can I convert an HTML page (via $cURL or something) to a PDF file?

Free way to convert PDF to XPS with C#

Are there any free tools that I can use to convert a PDF document into an XPS document? Although a nice programmatic API would be nice, I m not opposed to shelling out to a command line tool to do ...

PDF conversion service

I need to develop a service able to convert MS Office and Open Office documents to PDF. And the PDF`s also need to be commentable when opened in ADOBE Reader. I have used a piece of software from www....

热门标签