tabula-java icon indicating copy to clipboard operation
tabula-java copied to clipboard

Cannot get script to write multiple pages to same CSV

Open apantazi opened this issue 4 years ago • 0 comments

I'm trying to run a shell script on a batch of PDFs, but when I run the script, each time it does a new page it overwrites each CSV.

Here's a sample of the script: java -jar script/tabula-1.0.4-jar-with-dependencies.jar -a 37.073,64.142,105.335,867.982 -b C:/Users/Andrew/vaccines/vaccine-county/vaccine-county -f CSV -n -t -p 1 java -jar script/tabula-1.0.4-jar-with-dependencies.jar -a 203.02,438.405,646.72,826.79 -b C:/Users/Andrew/vaccines/vaccine-county/vaccine-county -f CSV -n -t -p 1 java -jar script/tabula-1.0.4-jar-with-dependencies.jar -a 37.073,64.142,105.335,867.982 -b C:/Users/Andrew/vaccines/vaccine-county/vaccine-county -f CSV -n -t -p 2 java -jar script/tabula-1.0.4-jar-with-dependencies.jar -a 203.02,438.405,646.72,826.79 -b C:/Users/Andrew/vaccines/vaccine-county/vaccine-county -f CSV -n -t -p 2 java -jar script/tabula-1.0.4-jar-with-dependencies.jar -a 37.073,64.142,105.335,867.982 -b C:/Users/Andrew/vaccines/vaccine-county/vaccine-county -f CSV -n -t -p 3 java -jar script/tabula-1.0.4-jar-with-dependencies.jar -a 203.02,438.405,646.72,826.79 -b C:/Users/Andrew/vaccines/vaccine-county/vaccine-county -f CSV -n -t -p 3 java -jar script/tabula-1.0.4-jar-with-dependencies.jar -a 37.073,64.142,105.335,867.982 -b C:/Users/Andrew/vaccines/vaccine-county/vaccine-county -f CSV -n -t -p 4 java -jar script/tabula-1.0.4-jar-with-dependencies.jar -a 203.02,438.405,646.72,826.79 -b C:/Users/Andrew/vaccines/vaccine-county/vaccine-county -f CSV -n -t -p 4

I want it to grab two areas from each page of each PDF and then make one CSV for each PDF with all pages. I'm not sure what I'm doing wrong.

apantazi avatar Mar 08 '21 17:03 apantazi