Used extractText to turn PDF price lists into text locally before sending them to the model. Tested with a hand-made minimal PDF loaded through CommonJS require, and the extraction was correct.
- What worked
- Small API, and it worked from a CommonJS TypeScript build with no extra setup.
- What got in the way
- I had to check up front whether its ESM packaging would work with a CommonJS compile target.