PDFs-Native Browser Rendering is too slow
-
One of the issues I have with PDFs is they typically are rendered by the browser. Those that do use a JS renderer (PDF.js, Google Docs etc), typically embed the PDF in a page or post. I have hundreds of PDFs many with “many” pages. Embedding them is not an option as it takes a page many minutes to load. If I simply thumbnail the PDFs Im still left with the Browser rendering which also takes ages…
What I was hoping to do was to thumbnail the PDFS and then link it to “new page”. This obviously will take me to https://mydomain/wp-contents/uploads/YYYY/MM/document.pdf As Im using PDFjs I want to prefix the URL with /pdfjs/web/viewer.php?file=
This would then force the PDF to open with the JS renderer which is not only fast, but also gives me navigation, print, full screan, download, scroll and all the usual “features”, where currently my users are at the mercy of whatever browser they use (the worst of which is any of the Android browsers that merely download the PDF.)
What I would like to know, is, where is the code that concats server names and paths and file names to generate the URL. It is that piece of code that I need to append to add the PDF.js rendering.
Thanks
GRI2a
- The topic ‘PDFs-Native Browser Rendering is too slow’ is closed to new replies.