Skip to content

Commit c21d21e

Browse files
RoyLinRoyLin
authored andcommitted
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 parsing
1 parent 35f6565 commit c21d21e

83 files changed

Lines changed: 24294 additions & 3782 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

Lines changed: 88 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[workspace]
22
resolver = "2"
33
members = [
4-
"core"
4+
"core",
55
]
66
# Native SDK crates require special toolchains (Python/Node.js)
77
# Build them individually: cargo build -p a3s-code-node / a3s-code-py

0 commit comments

Comments
 (0)