Commit c21d21e
feat(doc): add StructuredTable and PageInfo to ParsedDocument for stable machine-readable output
Phase 1: Add `tables[]` and `pages[]` output to ParsedDocument for stable
machine-readable consumption. StructuredTable includes row_count, column_count,
headers, and rows. PageInfo includes page number, block_count, and labels.
Phase 2: Use lopdf for position-aware PDF text extraction instead of
pdf-extract, enabling better text ordering and layout detection.
- Add StructuredTable and PageInfo types to doc/model.rs
- Add extract_tables_for_output() to consume_parse.rs
- Add parse_pdf_with_lopdf() for position-aware PDF extraction
- Add lopdf dependency for PDF parsing1 parent 35f6565 commit c21d21e
83 files changed
Lines changed: 24294 additions & 3782 deletions
File tree
- core
- examples
- src
- composite_document_parser
- extract
- format
- mail
- markup
- normalize
- ocr
- probe
- document
- doc
- llm
- session
- tools
- builtin
- manual
- sdk
- node
- examples
- src
- python
- examples
- src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments