Skip to content
This repository has been archived by the owner on Jan 20, 2021. It is now read-only.

The output csv file using command line with the option 'spreadsheet'('lattice') is not well formated #110

Open
LittleLakeFish opened this issue Feb 26, 2016 · 2 comments

Comments

@LittleLakeFish
Copy link

Hi jeremybmerrill,

I used the cmd line with option 'spreadsheet'('lattice') to extract the table from the PDF file which I sent to your mailbox before.(the cmd line is "tabula --spreadsheet -a 171.743,81.473,409.658,611.618 -p 1") .
And I found the output csv file is not well formatted(there is reduplicative data, blank row between table data columns ect.). If I do this *_without *_the option 'spreadsheet'('lattice'), the csv file format is very nice just like the result of tabula executable.
Another issue is, the table extracted via the cmd line with option 'spreadsheet'('lattice') missed the last column of the original pdf table. (Just same as the The data of the last column was missing with Lattice algorithm)

tabula-extractor version is 0.8.0
Platform windows 7
JRuby 9.0.5.0
Could you please help to solve this?
Thanks a lot for your kindly help!

@jeremybmerrill
Copy link
Member

You need to use tabula-extractor version 1.0.0.pre.alpha or use tabula-java

I attached a version of tabula-extractor version 1.0.0.pre.alpha. (Remove the .zip extension. Github wouldn't let me upload a .gem file.)
tabula-extractor-1.0.0.pre.alpha-java.gem.zip

@LittleLakeFish
Copy link
Author

Hi jeremybmerrill,
I have tested the tabula-extractor-1.0.0.pre.alpha-java.gem. It was installed successfully, but the result was still not well formatted.
I run the following installation cmd:
C:>jruby -S gem install D:\Tools\Tabula-extractor-1.0.0\tabula-extractor-1.0.0.pre.alpha-java.gem
tabula-extractor's executable "tabula" conflicts with C:/jruby-9.0.5.0/bin/tabula
Overwrite the executable? [yN] y
Successfully installed tabula-extractor-1.0.0.pre.alpha-java
1 gem installed
After I installed it, I used the -v cmd to check the tabula version, there was only "tabula 0.8.0 (c) 2012-2013 Manuel Aristarán" displayed.
I'm not sure if the new gem file you sent to me was installed successfully or not.
Thanks a lot for your help!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants