I created a PDF with some files attached and links (in fact annotations) to these files:
When I open the PDF from my computer with Acrobat Reader I'm able to open all files either by clicking directly on the "Attachments" column or clicking on the links (annotations).
But when I try to do the same on mobile (iOS, Android or WP) via Acrobat Reader application (I also tried with Foxit App and few others) it doesn't work:
I can't access to the attachments column
When I clicked on the links (annotations) nothing happen
So, I want to know if someone know a mobile application (no matter of the OS) that is able to open/access to the attachments in a PDF ?
Thank you.
Gerald.
File attachments and other annotations are beyond the scope of most (if not any) mobile PDF viewer. You might have to look around to find a viewer which offers to support these objects; maybe you are lucky.
PDF viewers for mobile devices do evolve quite rapidly, so, things may change within the next few months…
Related
We have a file server on which we place PDF documents and then embed links to them in a smart device app. Up until recently, using links to the PDF documents starting with http:// worked fine for Android and iPhone users. All could load the PDF file just fine. Then a few months back (approximately) Android phone users started reporting they would get an error when trying to load any PDF. Yet iPhone users had no issues loading the same PDF document. It was verified that these PDF documents (several) were not corrupted and opened fine when placed on another file server.
I have an iPhone so I can't give you the exact error msg received by Android users but to reproduce it, it was along the lines of... click the link to the PDF, a button appears showing View PDF, click that button and several apps appear to choose the app to open the PDF with, click one (like Adobe Reader, or Google Drive) and an error appears stating the file could not be opened and may be corrupted of the wrong syntax.
Tonight I found the solution.
The url to the PDF on all these documents on our server had been like http://...
but when I changed it to https://... it works fine.
I can't find ANYWHERE any mention of a change by Google that this is now a requirement.
My question...
Can someone explain and/or point me to a reference that explains why https must be used in embedded links to PDF documents? It seems like a pretty big deal to make this a requirement and not tell anyone. My searching the internet has so far not turned up anything.
Actually I wanna develop a books list with EPUB format (list will be retrieved from web service).
When an item (a book) is selected, it should prompt up with available epub readers installed in the mobile. Similar to "Share" will invoke SMS, FB, Twitter etc apps.
I know there are third party EPUB reader sdk, but I don't wanna develop just another epub reader. Can someone point me to the correct resource please?
Thanks for your time in advance.
The typical approach to have a third-party app view a file is to use an ACTION_VIEW Intent, with a Uri pointing to the file (e.g., as published via FileProvider), and the MIME type for that file (e.g., application/epub+zip for EPUB).
I need a pointer to a (preferably free) PDF viewer app that I can invoke on a file or URL link via a startActivity on an Intent. I know that there is no real standard - I have one phone that came with OpenOffice that can read local PDF files, and one phone that has no built-in PDF reader.
What I want is the name of an application that I can suggest to my users to download from the market that is a PDF viewer that I can invoke by configuring an Intent and calling startActivity. I would make this suggestion when I intercept a URL to a pdf file, and discover that the application is not yet installed. Although ugly, this is better than the blank screen they get now because the built in browser doesn't do PDF.
I already installed Adobe's PDF viewer but it is not showing up in the package manager as being a candidate to handle PDF files.
I have used the technique suggested in SO:how-to-render-pdf-in-android to examine the candidate activities for a URL based PDF link and a local file PDF link and see that the com.android.browser.Browser is always invoked for http:// URL links; a URL of "file.pdf" causes OpenOffice to be selected on one phone and nothing on the other phone. Adobe's PDF viewer is not a candidate for either approach.
I tried the Google Docs viewer approach (as suggested in SO:android-load-pdf-pdf-viewer but that leaves a lot to be desired, especially as the PDF image I tried to load kept moving further and further down the device's screen until a user would need to scroll several screen fulls of blank screen to get to the document.
I see libraries such as android-pdf-viewer as a potential solution. But I'd prefer to link to another application rather than build in PDF support (including the fonts, etc) into my application. This then allows my application to support multiple PDF viewer applications - choosing one that the user has already installed or suggesting my favorite one if no compatible reader is present when I need it. Potentially I could see using these types of libraries to create such an application and load it to the market place, but before doing that I want to make sure that I'm not re-inventing the wheel.
I found the droid-reader application which looks promising, but this doesn't appear to be available from the market place. While I'm personally comfortable with the gymnastics of downloading files to my sdcard and installing from there, its not a viable option for the general public user that I'm targeting.
I hope the following code snippit would be helpful to you for reading pdfs. It will use the default pdf viewer that has been set on your device.
Intent intent= new Intent(Intent.ACTION_VIEW);
File f = new File("/mnt/sdcard/file.pdf");
intent.setDataAndType(Uri.fromFile(f),"application/pdf");
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
getApplicationContext().startActivity(intent);
I have an android application that needs to display the pdf files. For this I am using Adobe PDF reader intent and pass the file path to it.
It works fine when the pdf file is present on the sdcard but I am not able to view the pdf file when it is placed on web (i.e. http://www.myweb.com/pdfs/mypdf1.pdf).
Any idea how to do this?
Adobe Reader on Android does not seem to support this feature so far, as it is really simple.
Maybe you could try Adobe Air, but I am not sure the version on Android supports .pdf.
If not, I suggest you could pass the Intent to the browser, and the browser will download it, and then it can be displayed. Maybe there will be some browser that can open .pdf directly as those do on computer, but I am not aware any.
i open a PDF with the default reader on the system.
Someone know if is possible inherits this reader (ex. Thinkoffice or Adobe Reader) into a layout on my app?
Because i need to open a PDF and show an header, or something like that, with a special description.
Someone know if is possible inherits this reader (ex. Thinkoffice or Adobe Reader) into a layout on my app?
That is impossible. You cannot embed other applications' UIs into your app.
Because i need to open a PDF and show an header, or something like that, with a special description..
Put that information into the PDF file itself.
As far as I know, I don't think it's possible. You can however fire intents which can be captured by an appropriate application on the phone. This is handled by the OS. I don't know if there is any intent for opening PDFs. Here is a useful library for intents though: http://www.openintents.org/en/intentstable. See if you can find something there.