The PDF file is saved with blank pages and missing contents when adding images with different file types
Categories
(Firefox :: PDF Viewer, defect, P1)
Tracking
()
People
(Reporter: dlucaci, Assigned: calixte)
References
Details
Attachments
(2 files)
Found in
- Nightly 117.0a1 (2023-07-17)
Affected versions
- Nightly 117.0a1
Affected platforms
- All
Steps to reproduce
- Open a PDF file in Firefox.
- Add Several images types to the PDF file.
- Click on the Print preview button.
- Print the PDF file by pressing the "Save" button.
Expected result
The PDF file is correctly saved with its content unchanged and with its images/content successfully displayed.
Actual result
The PDF file is saved with blank pages and missing contents.
Regression range
N/A
Notes
Sometimes the PDF files are saved with only the images missing, other times the whole pages are saved blank.
Reporter | ||
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
An easy str:
- open a pdf with at least two pages
- add an image on the first page
- copy and paste the image on the second page
- add an other image (different of the first one) on the second page
When page 2 is printed we look for the annotation containing the bitmap originally on page 1:
https://github.com/mozilla/pdf.js/blob/43fc78899fea71cdadb4883aeeec51b849c29b3d/src/core/document.js#L452-L465
but we don't generate the images created for annotations on page 2.
Comment 2•2 years ago
|
||
Updated•2 years ago
|
Updated•2 years ago
|
Comment 3•2 years ago
|
||
Reproduced the issue on Nightly 117.0a1 (2023-07-18) following the STR, on Windows 11, Ubuntu 22 and macOS 13.
Verified it on Nightly 118.0a1 (2023-08-21) and 117.0 (with pref manually turned on, pref is off by default) builds on macOS 13, Windows 11 and Ubuntu 22, and can confirm that the issue is fixed.
Updated•2 years ago
|
Description
•