-
Notifications
You must be signed in to change notification settings - Fork 675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue printing PDF using Firefox #695
Comments
I also tried using https://www.npmjs.com/package/print-js-updated which resulted in the same error. Using the version from the CDN https://printjs-4de6.kxcdn.com/print.min.js opens the PDF viewer on Firefox without throwing an error (doesn't print though) |
Seeing the same: Warning: Invalid absolute docBaseUrl: "blob:https://xxxxxxxxxxxxxxxxxxxxxxx/126c4566-4c9b-4923-a0a4-ec4aff6591c0". pdf.worker.js:970:13 I see the PDF in my UI, but when I print it's just a blank page and the preview is also white. It works fine in Edge and Chrome. Firefox: Version 118.0.2 (64-Bit) |
I am seeing that there was a fix committed 8 months ago: Merge pull request #657 from amoilanen/fix-firefox-110-pdf-printing but no release was done? |
I tried print-js-updated which includes the made but unreleased fix and with that, it works again for me. Sad that this project is going to waste. |
Thanks @SaschaAusUlm I'll try again. How did you implement it? |
Hey @bababash, for us, printing is just a one-liner:
with printable being a link to one of our PDFs in one of our Blob storages. To make it work again in Firefox, I just had to pull in the patched library with npm and adjust the import. |
Hello, I patched the library with the code from the PR, but I still get a blank page in firefox v119.0 when printing (no errors in console though). |
I've installed |
I tried again with print-js-updated from npm. It appears to have the changes merged in but hard to tell. How come there is a disconnect between npm and github? The issue still exists with Firefox. Works perfectly in Chrome.
|
If anyone else is hunting for a solution, this is what worked for me to print a pdf in chrome/firefox: |
Nevermind, I was able to get it working with print-js-updated. |
Looks to be broken now again. Even the example homepage is broken: https://printjs.crabbly.com/. Just shows a blank page. |
Hello Print.js team,
I'd like to report an I am experiencing using Firefox. This is working perfectly in Chrome
Implementation:
<button type="button" onclick="printJS('/static/test.pdf')">Print</button>
test.pdf was copied from this repository
Using Print.js v1.6.0
Using Firefox v118.0.2 (64-bit)
Issue:
Upon clicking the button, I get the following output in my console
Warning: Invalid absolute docBaseUrl: "blob:http://127.0.0.1:8000/ff77f293-d166-45ff-a02a-d3e4c7852f7a".
Warning: Bad value, for custom key "AAPL:Keywords", in Info: .
PDF 8eed11de459c2ed35fec410bf057a870 [1.3 Mac OS X 10.11.4 Quartz PDFContext / Word] (PDF.js: 3.10.86 [c72cb5436])
Uncaught NS_ERROR_FAILURE:
Hope you can help me!
The text was updated successfully, but these errors were encountered: