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

Specifying area and using nospreadsheet=True doesn't work #33

Closed
Kanz95 opened this issue Feb 6, 2017 · 2 comments
Closed

Specifying area and using nospreadsheet=True doesn't work #33

Kanz95 opened this issue Feb 6, 2017 · 2 comments
Labels

Comments

@Kanz95
Copy link

Kanz95 commented Feb 6, 2017

I have a pdf where guessing or autodetect tables isn't able to find the table and the table is a Stream table(columns separated by white spaces). I used tabula-py where the code goes like:

df=tabula.read_pdf("sample.pdf",nospreadsheet=True,area=(321.3,49.459,836.719,567.109))
I get an empty dataframe after executing .But mentioning the same area and using it through tabula in windows produces me a output which is what i want.

is there any way?

@leeper
Copy link
Member

leeper commented Feb 6, 2017

What was the R code you used? The analogue should be:

extract_tables("sample.pdf", spreadsheet = FALSE, area = list(c(321.3,49.459,836.719,567.109)))

You may want to try with guess = FALSE, as well:

extract_tables("sample.pdf", spreadsheet = FALSE, guess = FALSE, area = list(c(321.3,49.459,836.719,567.109)))

@leeper leeper added the question label Feb 6, 2017
@Kanz95
Copy link
Author

Kanz95 commented Feb 6, 2017

@leeper It Worked! Thanks

@Kanz95 Kanz95 closed this as completed Feb 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants