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

How to manage such table? #182

Closed
anakin87 opened this issue Oct 30, 2018 · 1 comment
Closed

How to manage such table? #182

anakin87 opened this issue Oct 30, 2018 · 1 comment

Comments

@anakin87
Copy link

anakin87 commented Oct 30, 2018

I can't parse correctly tables like this.

Copia di FI DIMENSIONE Multivalore Italia Mod 220384 Ed 05-2018-34-34.pdf

I tried using lattice and got only two rows, like this:

Numero di anni interamente trascorsi dalla dec... | Aliquota di riduzione
<1 1 2 3 4 ≥5 | Riscatto non ammesso 3,00% 2,00% 1,00% 0,50% 0...

On the contrary, stream captures the whole page and seems to not work well.

Do you have a suggestion? Camelot can handle a table like that?

@vinayak-mehta
Copy link
Contributor

@anakin87 Thanks for the report! Till we have #102, you can plot the 'text' geometry to get the table area and specify it to read_pdf to get the table out. Alternatively, you can use the CLI to plot the 'text' geometry:

camelot stream -plot text copia.pdf

Note the top-left and bottom-right coordinates of your table, and then specify them using the -T (table area) option:

camelot --format csv --output copia.csv stream -T 54,276,542,125 copia.pdf

Hope that helps!

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