may extract text like in Microsoft Edge #1077
Eyderoe
started this conversation in
Ask for help with specific PDFs
Replies: 1 comment 3 replies
-
Hi @Eyderoe, and thanks for your interest in this library. Unfortunately, without more details — e.g., the code you're running — it's difficult for me to understand the particular issue you're having. If the issue is the appearance of extra newline characters produced by methods such as |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
extract table in a pdf.
![屏幕截图 2024-01-08 185924](https://private-user-images.githubusercontent.com/103725178/294879270-c7102acd-a133-48da-8912-953bb2247044.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwMzY1MjgsIm5iZiI6MTcyNjAzNjIyOCwicGF0aCI6Ii8xMDM3MjUxNzgvMjk0ODc5MjcwLWM3MTAyYWNkLWExMzMtNDhkYS04OTEyLTk1M2JiMjI0NzA0NC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQwNjMwMjhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00NTRmNDNhMTRlMzc5Yjk5YTdkMGVlYjgwY2Y2Mjc0OTg1N2ZhYmZlZmUzNWUxZGQ0ZWQ1ODQ4YzNhZDMyZTg5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.aYZnxNZYe1V0-djCg45VKujxmoDk0K4Tr8nVOg4HK8M)
one row like this:
and run the code
and get this
![image](https://private-user-images.githubusercontent.com/103725178/294880254-5edf88b9-ea1f-4461-ab12-c245479dba0c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwMzY1MjgsIm5iZiI6MTcyNjAzNjIyOCwicGF0aCI6Ii8xMDM3MjUxNzgvMjk0ODgwMjU0LTVlZGY4OGI5LWVhMWYtNDQ2MS1hYjEyLWMyNDU0NzlkYmEwYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQwNjMwMjhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xMDY4YmVlOWUxYTg1NDgxOTcyZTQxNGVmZGI2YmY5NWE3ZGZkMzVjNTZlYzc5MDJlZWNmM2M3NmI1ZTg3Y2ExJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.6vNDjEwYiwGPeiux9fcU6Ok9Rj-dwoQA1ekP84hTI_I)
magiclly look like extract from
JC401 N38°31'08.9"E102°35'45G.2" JC N38°33.4'E102°19.4'
and when I use edge
I can get this perfect
![image](https://private-user-images.githubusercontent.com/103725178/294881366-efb39de7-7c90-4412-90f7-d0ea95d8c05b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwMzY1MjgsIm5iZiI6MTcyNjAzNjIyOCwicGF0aCI6Ii8xMDM3MjUxNzgvMjk0ODgxMzY2LWVmYjM5ZGU3LTdjOTAtNDQxMi05MGY3LWQwZWE5NWQ4YzA1Yi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQwNjMwMjhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02ODAyY2RjOTY2ZmEyMTQ1NGU0MjlhNWE2M2FmYjA3ZGRjZTJmNmRhYzYyZmM3YjdhZDkzNjMxYjhkMWUwYzAxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.KM4qncVempaGdOEqLAEjzuV-NBwze3Wo4STEbWpGwgg)
and edge wont add some strange blank in it (due to some reason I only can show this row)
so, I hope you might add the pdf engine of edge to pdfplumber sincerely
https://github.com/chromium/chromium/tree/main/pdf
Beta Was this translation helpful? Give feedback.
All reactions