Open PDF directly from HTML Article on Android onLoad?
Hi,
since I don't want to convert PDFs to JPEGs with the Acrobat-Plugin (the builtin PDFViewers are good enough for this) I came up with another solution, that does work on iOS but does not on Android.
- Create a HTML-Article
- When the body is loaded it executed a JavaScript which points window.document.location.href to the PDF-Location which is in the same folder as the index.html is
- This works fine on iOS - when I open up the article it automatically opens up the PDF, the PDF is also beeing downloaded with the article
Is this a limitation of the Android-Viewer, that it won't auto-open files? Right now I have to implement a simple Button in that article that opens the PDF - this works! It does not work when I automatically open up the PDF via JavaScript.
Kind regards
Marcel
