Skip to content

feat(pdf): PDF extraction with lopdf and schema 0.3.0 - #4

Merged
Bayern99 merged 3 commits into
mainfrom
cursor/v03-pdf
May 29, 2026
Merged

feat(pdf): PDF extraction with lopdf and schema 0.3.0#4
Bayern99 merged 3 commits into
mainfrom
cursor/v03-pdf

Conversation

@Bayern99

Copy link
Copy Markdown
Owner

Summary

  • Add extractors::pdf using lopdf (ADR-007): per-page PageBreak + paragraphs, Markdown <!-- page: N -->.
  • Bump schema_version / extractor_version to 0.3.0 (ADR-008).
  • CLI accepts .pdf; fixtures F01–F03 + generate-v03-pdf-fixtures.py.

Test plan

  • ./scripts/validate-schemas.sh
  • ./scripts/check-fixtures.sh
  • cargo test --workspace
  • cargo clippy --workspace -- -D warnings
  • llm-pack tests/fixtures/pdf/01-minimal.pdf -o /tmp/out and inspect content.md

Notes

Made with Cursor

Bayern99 and others added 3 commits May 29, 2026 08:53
Support PDF in CLI with per-page PageBreak blocks and <!-- page: N -->
markers. Spike chose pure-Rust lopdf (ADR-007); bump schema and extractor
versions to 0.3.0 with F01–F03 fixtures and tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Record owner decision: no OCR in any version; text-only extraction from
embedded content. Update ADR-001, ADR-007, AGENTS.md, and README.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Bayern99
Bayern99 merged commit aa24768 into main May 29, 2026
1 check passed
@Bayern99
Bayern99 deleted the cursor/v03-pdf branch May 29, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant