3 ms·
For low-level work, qpdf can be quite useful: https://github.com/qpdf/qpdf https://github.com/qpdf/qpdf
by layer8 1y ago
For low-level work, qpdf can be quite useful: https://github.com/qpdf/qpdf https://github.com/qpdf/qpdf
- ripe 1y agoCame here to say this. Qpdf is my go-to for manipulating pdf files on the command line. Encrypting, decrypting, extracting and merging pages. It's Apache-licensed and written in C++.
- voidmain0001 1y agoHow do you use qpdf for extraction when its README states “qpdf does not render PDFs or perform text extraction, and it does not contain higher-level interfaces for working with page contents.”
- ratrocket 1y agoNot the person you're replying to, but when they said "extraction" I believe they're talking about extracting pages from a PDF (like "splitting" the PDF apart, page-wise), not text. At least that's a thing I've used qpdf for in the past.
- BobaFloutist 1y agoWhich is also what the "extract" button does in Adobe Acrobat Pro DC for Professional Enterprise Customers or whatever they're calling it now, so it's arguably a term of art for PDFs.
- kccqzy 1y agoYou can render the PDF into QDF mode and then it is relatively easy to extract text just by searching for Tj and TJ operators.