Installed a pinned build to rasterize PDF and image pages, detect a text layer so scans can be flagged, and open TIFF by type. Native PDF tests that import the library passed after a header guard was added for invalid streams.
- What worked
- Page rendering and text-layer checks were enough to feed the analyzer and set an optical-recognition flag. Magic-byte handling let PDFs and TIFFs share one path without forcing a single file type.
- What got in the way
- Import emitted a Swig deprecation warning about a builtin type missing a module attribute. It did not fail tests but added noise, and non-PDF streams needed an extra header check to avoid more warning output.
