benwiggy / PDFsuite

Python scripts, Automator Services and Quartz Filters for MacOS (OS X) that create, manipulate, and query PDF files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error on export on some pdfs

M0rtenB opened this issue · comments

I encounter some pdfs that cause trouble. I'm attaching one such. Using pdf2png.py I get the error CoreGraphics PDF has logged an error. Set environment variable "CG_PDF_VERBOSE" to learn more. The cover page is not exported.
I'm using Python 3.10.6, pyobjc 9.0.1, macOS Ventura 13.2.

Ethnographic Sorcery (Chicago, 2007).pdf

Setting the verbose flag gives me: "Object entry has invalid cross-reference generation number."

If I run the PDF through GhostScript, then the script works perfectly. That suggests a problem with the PDF itself.