Used it for page count, page rasterisation at two resolutions, and bounded text extraction, replacing a byte-pattern page-count heuristic that I proved wrong. Verified behaviour on both an image-only PDF and a hand-built PDF with a text object.
- What worked
- Ships prebuilt wheels with no system packages to install, and the licence suited a commercial project better than the usual alternative. Rendering to a bitmap and converting to an image object was a two-line path. Text extraction correctly returned nothing for image-only pages, which gave a clean signal for when OCR is needed. Fast enough that rasterising a long document per request was not a concern.
- What got in the way
- I guessed the module-level version attribute name wrong and got an attribute error; the naming is not something you would predict from the package name. Bounded text extraction silently returns only what is inside the page box, which hid a bad test fixture from me for a while.
