Chose it over a heavier alternative after comparing published package sizes, and used it behind a small injectable interface to pull per-page text for quote verification. Exercised it end to end against a hand-built two-page PDF: both pages extracted correctly and a deliberately wrong page citation was caught.
- What worked
- A single call with a per-page option returns both the page array and the total page count, which was exactly the shape needed with no post-processing. Bundled type declarations made the return shape verifiable before writing code. Worked on the first try against a real file with no configuration, no worker setup, and no native build step.