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

two column pdf wrong order #99

Open
jingangdidi opened this issue Dec 22, 2024 · 1 comment
Open

two column pdf wrong order #99

jingangdidi opened this issue Dec 22, 2024 · 1 comment

Comments

@jingangdidi
Copy link

Thank you for creating this wonderful tool!
When utilizing extract_text to extract content from a two-column PDF file, the order is incorrectly arranged, with the content on the right column of the first page is followed by that on the right column of the second page). But some two-column PDF file in arxiv no such problem.

The extracted result:
1

The raw pdf content:
2

pdf file: 2_column.pdf

@jrmuizel
Copy link
Owner

Yeah, the library makes no effort to properly assign text to columns yet. The approach I'm thinking of for this would be to gather all the text and positions and then assign columns in a second pass.

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

No branches or pull requests

2 participants