How oteyjo/pdf-extract works
This is a compact PDF extraction utility centered on PDFExtractor. The user supplies a PDF and extraction options; the extractor partitions the PDF, processes recognized elements, writes content and document metadata, and returns counts. Text, titles, tables, images, and element metadata are handled within the same source file. The README documents these output capabilities; the graph shows the implementation relationships visible in the excerpt.
Main entry points: pdf_extract.py PDF extractor
Components 7
Extraction
- PDF extractor
pdf_extract.py - PDF partitioner
- Element processing
pdf_extract.py - Element metadata
pdf_extract.py
Outputs
- Extracted files
pdf_extract.py - Extraction statistics
pdf_extract.py
Other components
- User
Connections 7
- User → PDF extractor: requests extraction
README.md - PDF extractor → PDF partitioner: partitions PDF
pdf_extract.py - PDF extractor → Element processing: processes elements
pdf_extract.py - Element processing → Element metadata: extracts metadata
pdf_extract.py - Element processing → Extracted files: writes content
pdf_extract.py - PDF extractor → Extracted files: writes document metadata
pdf_extract.py - PDF extractor → Extraction statistics: returns counts
pdf_extract.py