Why is the order of extracting the contents in the table cells wrong? #1069
xielulu1994
started this conversation in
Ask for help with specific PDFs
Replies: 1 comment
-
Hi @xielulu1994, and thanks for your interest in page.extract_table({ "text_y_tolerance": 5 }) ... although you may have to try adjusting that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
extract_table() to extract table content, and find that the order of extracted text in individual cells is inconsistent with the original text.
pdf table:
![image](https://private-user-images.githubusercontent.com/42051898/288948650-67b30a7b-92c2-483c-9389-3d1c5ab2669f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwMzYxNjEsIm5iZiI6MTcyNjAzNTg2MSwicGF0aCI6Ii80MjA1MTg5OC8yODg5NDg2NTAtNjdiMzBhN2ItOTJjMi00ODNjLTkzODktM2QxYzVhYjI2NjlmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTExVDA2MjQyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJmMWMwNTYyNGVkOTEzNzQxMzYwZjcwMWE3MjkyYWQzYmU0NmFlZmE3ZmVmMDIxYzQwY2NjOWYxYWI3YjM1MDgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.MAKHxLCOa3rHzavC79-2uTDUZ_-2pofFNleFFAuOSNU)
Code to reproduce the problem
PDF file
Please attach any PDFs necessary to reproduce the problem.
If you need to redact text in a sensitive PDF, you can run it through JoshData/pdf-redactor.
Beta Was this translation helpful? Give feedback.
All reactions