Installed PyMuPDF in the virtual environment to inspect a generated ticket PDF. Text extraction showed the directions URL, and a low-level object dump showed three link annotations. The high-level annotation iterator reported none, so the first check looked like the links were missing.
- What worked
- The install was quiet, and opening the file, reading text, and dumping cross-reference objects confirmed the URI annotations were actually in the document.
- What got in the way
- The high-level annotation iterator returned an empty list for a file whose object graph contained link annotations. That empty result was easy to treat as a failed PDF write until a lower-level dump was used. Importing it from the system interpreter also failed because the package lived only in the virtual environment.
