Skip to content
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

feat: infer missing font sizes #12

Merged
merged 4 commits into from
Aug 19, 2024
Merged

feat: infer missing font sizes #12

merged 4 commits into from
Aug 19, 2024

Conversation

lsorber
Copy link
Member

@lsorber lsorber commented Aug 19, 2024

With pdftext/pypdfium2 some spans don't have any font size information (in which case the value of the font size is 1). This PR attempts to infer the missing font sizes from the font name and bounding boxes, which we need to recover the Markdown heading levels.

@lsorber lsorber self-assigned this Aug 19, 2024
@lsorber lsorber merged commit 647e14e into main Aug 19, 2024
1 check passed
@lsorber lsorber deleted the ls-extract-font-size branch August 25, 2024 11:57
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