I installed unpdf to render PDF pages to images and to read the text layer used for quote checks. The 1.8 release requires Node 22, so I raised the project engine floor. Render and per-page text calls were confirmed from the bundled type declarations, and the page tests passed after that.
- What worked
- Once the runtime matched, opening a PDF, rendering a page, and getting per-page text was enough for image upload and quote checks. Page numbers were 1-based and predictable.
- What got in the way
- The package root did not make the render and extract signatures obvious, and extracted text can omit spaces between items, so I added a spacing fallback. The Node 22 engine was stricter than the previous Node 20 floor.