How to Automatically Add Table Borders in a Misaligned PDF? #1283
88arvin
started this conversation in
Ask for help with specific PDFs
Replies: 1 comment
-
I believe pdfplumber cannot meet your requirement—it can only read and parse PDFs, not edit or modify them. However, if you are sure the content are tables, you can extract each line’s bbox relative positions with pdfplumber and then use another third-party library to regenerate the table or directly output it as a Markdown table. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I have a PDF that contains tables but the columns are not properly aligned across pages. I know that I can explicitly draw vertical lines to create borders, but the misalignment varies from page to page, I would have to do this manually for each page, which is time-consuming.
Is there a way to automatically add vertical borders to the tables without explicitly drawing lines on every page?
Any suggestions would be appreciated!
sample.pdf
Beta Was this translation helpful? Give feedback.
All reactions