PDF.JS download same pdf multiple times - pdf.js

I am having the following problem. When I open the first document in pdf.js viewer and click the download button, that document is downloaded. But when I open a second document, and click download, that document is downloaded two times. And if I open a third document, click download, the document is downloaded three times. And so on. Do you have any ideia how I can resolve this issue?

Related

In iOS, How do other applications write PPT files into the inbox path of their own sandbox?

I have a requirement now, and I want to display a PPT file in my app using WebView. However, this PPT file is downloaded from other applications,When I click "open from other applications" button in other app,select own app and click Import the PPT file.Then jump to my app interface. After that, I saw this PPT file in my app sandbox/Inbox path. I want to know how this file is passed into my application sandbox? Is that perform any method? I need to intercept this process and do something.Can someone help me?
Your App Delegate is called with the URL of the sanbox/Inbox file.
See:
https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1623112-application

Uploaded verified local fXL epubs don't open in Google play books

My fixed layout epub is verified with epubcheck-4.0.1: no errors, no warnings. On ibooks and Readium: no problems at all.
I upload the file to my google play books library on Chrome, Firefox, safari. The epub doesn't open and gets stuck with "Processing..." keeping displayed.
Now, I 'buy" a free fixed epub from the google play books store. The epub opens. I downloaded the epub. Upload it again. Now it doesn't open any more. Message: "This book cannot be opened
This book contains content that is not yet supported in your browser."
I try the same procedure on an Android device. Same behavior.
I am stuck and would be grateful to have a few hints to move from this gridlock.
This is not possible to read a local epub on the playbook reader within a browser. The native play books reader must be installed instead.

How to open excel, doc from ms-word or ms-excel in iOS

In my application I download doc and excel files and I want user to open them from MS Word, MS Excel application available for iPad. I don't want these files to be opened in web view but wants to open in MS word or excel in the same way like after long press in my Mail app I get option to open document from different application.
I have attached the screenshot of what I want to achieve.
Please let me know the way I can achieve it.
You can make use of the QuickLook Framework Available for iOS. Here is a great tutorial for that

PDF File Editing and Read Editable file in iOS?

I have a problem that PDF file editing . From my app, when an OpenIn menu is shown, I'll choose an application to open the file PDF Expert in iphone device( ex:UIDocumentInteractionController to share with PDF Expert) and the PDF file is opened for edit in PDF Expert. But after editing, how can I send it back to my app or get the link where that editable PDF is saved ? How can I get this file?
You can't, unless you app registers it self that it can also open PDF file. Then if PDF Expert has an option the open the file in an other app the user will be able to open it your again.
There is not build in feature in the iOS SDK that lets you get a file from an other app.

How to restore the file type association in iOS

Some of you may have tried an App named Phone Drive, it took over the file type like mp3, pdf etc.
But what if I want to restore the association to the default app?
For example, previously when I opened a link to mp3 in Safari, Safari plays it. But when I am using Phone Drive, I need to download it in that App and play it later.
Any suggestion?
Please ignore the below one. iOS doesn't support wma....
Some of you may have tried an App named Phone Drive, it took over the file type like wma, pdf etc.
Originally, when I clicked a link to wma file in Safari, it is opened in a player embed in the web page.
However, after I installed and removed that App, when I tap on the same link, Safari pops out an alert says it can not download the link.
Any solution? Thank you.

Resources