Closed yurivict closed 7 years ago
I've not tried, but it seems that https://pdfobject.com/ may be able to do what you ask. Closing, since this is out of scope for the PDF.js project.
PDFObject embeds pdf into the page using the 'embed' clause, or iframe with prepared html. It doesn't replace embeds/iframes to use pdfjs.
Some websites expect a browser to have the pdf plugin:
But some browsers don't have the pdf plugin, webkit for example. It should be possible to rewrite such code and replace it to use pdfjs. Is such script available? Or can the pdfjs project provide such script?