Replies: 3 comments 6 replies
-
No, I've never seen something like this before. Either printing works, or it doesn't. But I've never heard anybody complain about being able to print once, but not with a document opened later. I've tried your scenario on the showcase. It works as expected. I'm afraid you've run into a brain twister. :( |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Sounds like a CSS problem to me. The print algorithm renders a canvas for every page, uses CSS to ensure the canvas covers the entire page, puts them into a div called "#printContainer", uses CSS to hide everything else and prints the As for the character swapping: check your network tab. Maybe the PDF viewer tries to load a font that's not there? Oh, and I'm confused about your version number. The most current stable version is 21.4.5. There's also a 21.4.6, which should also work fine if you're using the stable branch of pdf.js. "2.0.0-alpha.5" sounds like a typo, but even so, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Stephan,
Thank you for the work and answers last time.
My app has a list of pdfs, they can be opened with the pdfViewer in a modal.
All pdfs can be opened correctly, but only the pdf first opened can be printed. The pdfs opened afterwards, when printed just show blank page.
I followed the debugging steps from the Troubleshooting, so only the first opened pdf has content in , the ones opened afterwards will have something like this
<div _ngcontent-ng-c39577623="" id="printContainer"></div>
Do you have any ideas why that happened, or suggestion for further checking?
Thanks,
Colin
Beta Was this translation helpful? Give feedback.
All reactions