Documents.
WHAT PYTHON CAN DO
Extract text Merge and split Add pages Produce documents from scratch
WHAT IT DOES POORLY
Extracting text reliably from complex layouts Anything from a scanned image without character recognition
THE SCANNED DOCUMENT POINT
A scanned PDF contains an image, not text.
Extraction requires recognition, which is a separate and imperfect step.
WHAT TO EXPECT FROM EXTRACTION
Reading order that may not match visual order Tables that lose their structure Inconsistent spacing
WHAT TO DO ABOUT THAT
Validate what you extracted before relying on it.
WHAT GENERATING DOCUMENTS SUITS
Invoices Reports Certificates
WHAT TO CONSIDER INSTEAD
Producing a web page and converting it, which is frequently simpler for complex layouts.
WHAT TO TEST
With real documents, including awkward ones.
WHAT TO CHECK
That output opens correctly in common readers.
WHAT TO BE CAREFUL WITH
Documents containing personal data Memory, on large files