Saving PDF files causes rendering problems
Categories
(Firefox :: PDF Viewer, defect, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: antonikowalczuk, Assigned: calixte)
References
Details
Attachments
(1 file, 1 external file)
|
229.90 KB,
application/pdf
|
Details |
Steps to reproduce:
Steps to reproduce
- Take any PDF with words, e.g., rendered using overleaf.
- Click "Print" -> Save as PDF (useful when only subset of pages is needed).
- Open Finder, locate the file.
- Open with -> Firefox.
- Device: MacBook Pro M3 with macOS 14.2 (23C64), and Macbook Pro A2918 M3 with macOS Tahoe 26.3.
- Build version: Version 148.0 (64-bit), Firefox 148.0 (aarch64).
- First seen version: Version 148.0 (64-bit)), Firefox 148.0 (aarch64).
I attach a PDF file after performing steps 2->4, where the first step includes rendering the PDF in overleaf using this template (I couldn't attach two PDFs).
Actual results:
Actual behavior
Some characters are not rendered, especially capital letters. The problem was reproduced on two MacBook laptops (steps 1 to 4, mentioned above), and rendering issues persist on Chrome browser, on Windows, and in Slack messenger. For some browsers, like Safari or Microsoft Edge, the PDFs render correctly.
Expected results:
Expected behavior
Everything is rendered properly.
Comment 1•8 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::PDF Viewer' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•8 months ago
|
||
The severity field is not set for this bug.
:calixte, could you have a look please?
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 3•7 months ago
|
||
I cannot reproduce the issue on Windows 11 but I can on mac so it's very likely related the pdf backend used when printing.
For whatever reason the char id used to draw the "C" (on the first page) is \u0000 which is a very bad idea.
Overall the font encoding looks completely wrong, for example if I copy and paste "Some Class\nRandom Examples" from either Acrobat or Firefox, I get:
Rnld eYrr
NYmanl CuYloedr
There's no issue when doing the same with the pdf generated on Windows.
Out of curiosity, I checked the skia print backend and the C is correctly drawn but unfortunately the printed page is an image.
Jonathan, would you have any ideas ?
| Assignee | ||
Comment 4•17 days ago
|
||
With the new print backend, it should be fine now.
Ghostscript is rendering the pdf correctly so there's something we can fix in pdf.js.
| Assignee | ||
Updated•17 days ago
|
| Assignee | ||
Comment 5•17 days ago
|
||
Updated•14 days ago
|
Updated•4 days ago
|
Description
•