Skip to content

Add Sections and improve Pymupdf handling #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 14, 2025
Merged

Add Sections and improve Pymupdf handling #10

merged 6 commits into from
Apr 14, 2025

Conversation

andreaponti5
Copy link
Collaborator

This PR adds the section attribute for the text nodes, using pdfact as driver. The section is composed by the entire heading hierarchy; the attribute is a string with different headings level separated by |>|.

In addition, the pymupdf driver now returns all the text attributes.

This PR requires parse-document-model>=0.2.1 due to the addition of the section attribute.

@andreaponti5 andreaponti5 requested a review from avvertix April 14, 2025 12:39
@avvertix avvertix self-requested a review April 14, 2025 15:16
@avvertix avvertix merged commit af8d642 into main Apr 14, 2025
2 checks passed
@avvertix avvertix deleted the add-section branch April 14, 2025 15:23
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.

2 participants