[Help] extract text by line #1002
supernovaMK
started this conversation in
Ask for help with specific PDFs
Replies: 1 comment
-
Hi @supernovaMK Appreciate your interest in the library. Specific to this PDF, you can use the following table extraction strategy, ts = {
"vertical_strategy": "lines",
"horizontal_strategy": "lines",
"explicit_vertical_lines": [70, 520],
"explicit_horizontal_lines": [80],
"intersection_y_tolerance": 10,
}
page.extract_tables(ts) which will give you the result as
However, defining |
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
-
In a situation where it is not recognized as a table, I would like to sequentially extract key values for each column value based on the lines. I tried im.debug_tablefinder() but didnt work . and i usually used crop() but there are so many tables to crop
![image](https://private-user-images.githubusercontent.com/115217054/272492253-afc9b26f-034d-4a82-9239-3bc3312f3610.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwMzM4NjksIm5iZiI6MTcyNjAzMzU2OSwicGF0aCI6Ii8xMTUyMTcwNTQvMjcyNDkyMjUzLWFmYzliMjZmLTAzNGQtNGE4Mi05MjM5LTNiYzMzMTJmMzYxMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQwNTQ2MDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kOTZmYTY0MmZhZTU3NjJkMWIyNzZjNzRkNzc4M2Y5YzZmZTkyOWVlOThjZTliMDkzMTY3MzIyZDA3YjQ3NTgyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.oN4HY5A77akokmRviZnglYiGbzGgWEYFf5inS-c8Bm8)
example.pdf
example output)
key1
key2
column3:key3
column4:key4
Beta Was this translation helpful? Give feedback.
All reactions