Cannot open certain .pdf files in GIMP after using cpdf.exe: "PDF document is damaged"
GIMP version: 2.10.6
Operating System: Windows 8.1
Package: Portableapps.com
Description of the bug
After running certain .pdf image files through cpdf.exe -squeeze "C:\Users\******\Desktop\about.pdf" -o "C:\Users\******\temp\about.pdf"
, I get this error when trying to open the file in GIMP:
Opening 'C:\Users\\Desktop\about.pdf' failed: Could not load 'C:\Users\\Desktop\about.pdf': PDF document is damaged
It opens fine in Foxit Reader, Adobe Acrobat, macOS Preview, pdftk, qpdf and Ghostscript with no visible corruption.
Reproduction
Is the bug reproducible? [Yes]
Reproduction steps:
- Run the command line tool.
- Attempt to open the file in GIMP.
…
Expected result: Prompt for canvas size.
Actual result: Opening 'C:\Users\\Desktop\about.pdf' failed: Could not load 'C:\Users\\Desktop\about.pdf': PDF document is damaged
Reported this issue to the developer of cpdf.exe, and was told to link this issue here: https://github.com/coherentgraphics/cpdf-binaries/issues/35