-
Notifications
You must be signed in to change notification settings - Fork 112
Description
-
I'm submitting a:
- Vulnerability report -> use the specific form instead!
- [x ] Bug report
- Feature request/suggestion
-
[Bug report] What is the current behavior?
Reading the PDF file into a PDFMemdocument and then writing it out to a new PDF file reduces the size from ~4MB to 40KB and the images are lost. -
[Bug report] What is the expected behavior?
There is no significant file size reduction and the visual appearance of the exported PDF file is identical to the original.
- [Bug report] Please provide the steps to reproduce and if possible a minimal reproduction code of the problem
Call PdfMemeDocument::Load() then call PdfMemDocument::Save()
Note that loading the document reports a warning:
PoDoFoWARNING: Found object with reference 0 0 R different than reported 46 0 R in XRef sections
This probably means the PDF file is corrupted, but it is rendered correctly by every PDF program I tried. PoDoFo should ideally handle the corruption or throw an exception when trying to write instead of silently discarding the data.
-
Please tell us about your environment:
- Version/git revision: [1.10.0]
- Operating System: [all ]
- Package manager used: [source ]
-
[Bug report/Feature request] Other information
The problem document:
https://bugs.launchpad.net/calibre/+bug/2035026/+attachment/5699703/+files/Sourcefile.pdf