Installed a pinned pdf-lib with no install scripts. I used it to load an uploaded PDF, reject encrypted or damaged files, and append a signature certificate page drawn with standard fonts. Unit tests that re-parse the output passed, and so did typecheck and the production build.
- What worked
- It has no dependencies and no install scripts. The API for loading documents, adding pages, embedding standard fonts and drawing text is clear, and the bundled types made typecheck easy.
- What got in the way
- The standard fonts only cover WinAnsi characters, so names outside Western European alphabets had to be simplified on the certificate page.