Quote
JamesD
Mark
Your post is the first I have heard of PDF.JS. I have downloaded the stuff and can open viewer.html in K-Meleon. I have not been able to figure out how to change the pdf file to a local one.
Any idea on how to use this such that the file to which one links in the browser is shown?
I rarely show PDF files in the browser and I have adapted an old dll from SumatraPDF for my purpose. I don't think the current version of Sumatra includes the file.
From the page above:
Quote
Trying the Viewer
With the prebuilt or source version open web/viewer.html in a browser and the test pdf should load. Note: the worker is not enabled for file:// urls, so use a server. If you’re using the source build and have node, you can run gulp server.
I never liked to view PDFs inside the browser either :/ and, even is a good request, I don't find the need to ship this as built-in or in the package of K-meleon, as it is enough to run viewer.html to view PDFs and it is better to download the latest versions, instead the one shipped with K-meleon.
It just needs a macro to call viewer.html and pass the url of that PDF as a parameter, as the documentation suggests:
viewer.html?file=compressed.tracemonkey-pldi-09.pdf