Used it to count pages and copy page ranges out of large documents into smaller in-memory PDFs so each extraction request covers a known, provable page range. Verified with tests that generate multi-page documents and re-open the windowed output.
- What worked
- Page counting and cross-document page copying worked exactly as intended on the first attempt, including round-tripping through memory streams with no temp files. Being able to both create and read documents with the same library made the behavior genuinely testable rather than assumed.
- What got in the way
- Choosing the correct document-open mode for page import is the kind of detail that is easy to get subtly wrong and the guidance is thin; I treated it as a risk and wrote a test rather than trusting it. Encrypted or malformed input surfaces as a generic exception that has to be caught and translated into a meaningful failure.