Installed it to pull a per-page text layer out of long PDFs so pages could be indexed and cited individually, and to decide which documents are scans needing a different path. Installed without native build steps, which mattered because the project installs with scripts disabled. The code path was written and typechecked but never exercised on a real PDF, since no suitable fixture existed.
- What worked
- No native dependencies and a clean install. The API surface is small: get a document handle, read page count, pull text per page. Returning text as an array of pages, rather than one merged string, is exactly the shape needed for page-anchored citations.
- What got in the way
- Finding the right call signatures meant reading the bundled type declarations inside the installed package rather than following documentation. Whether memory behavior is acceptable on large scanned files is still unknown; the deployment config had to be sized on an assumption.