quasarframework / app-extension-qpdfviewer

View PDF documents in your Quasar app
https://quasarframework.github.io/app-extension-qpdfviewer
MIT License
104 stars 19 forks source link

Update PDFjs to 4.x #133

Open philippebourcier opened 11 months ago

philippebourcier commented 11 months ago

PDFjs 4.x is out with some breaking changes, optimizations and bugfixes. 🚀

MartinX3 commented 8 months ago

Luckily the 2.x version can also use native HTML5 instead of PDFjs.

But on the other side if you only need the HTML5 rendering you can just do

<object data="https://foo.com/bar.pdf" type="application/pdf" width="100%" height="500px">
    <p>Unable to display PDF file. <a href="https://foo.com/bar.pdf">Download</a> instead.</p>
</object>

and avoid this extension.