tabula-java reads first row duplicated, with some letters missing
Running Ubuntu 18.04.1 Java (Oracle) 1.8.0_191
When running:
$ java -jar tabula-1.0.2-jar-with-dependencies.jar -l res/CEPI-1-1.pdf
The output is:
dic 19, 2018 3:33:57 PM org.apache.pdfbox.pdmodel.graphics.color.PDDeviceRGB suggestKCMS INFORMACIÓN: To get higher rendering speed on JDK8 or later, dic 19, 2018 3:33:57 PM org.apache.pdfbox.pdmodel.graphics.color.PDDeviceRGB suggestKCMS INFORMACIÓN: use the option -Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider dic 19, 2018 3:33:57 PM org.apache.pdfbox.pdmodel.graphics.color.PDDeviceRGB suggestKCMS INFORMACIÓN: or call System.setProperty("sun.java2d.cmm", "sun.java2d.cmm.kcms.KcmsServiceProvider") dic 19, 2018 3:33:58 PM org.apache.pdfbox.pdmodel.font.PDTrueTypeFont <init> ADVERTENCIA: Using fallback font 'LiberationSans' for 'TimesNewRomanPSMT' "",REA DE INSERCIÓN SOCIO-LABORAL, "",, "",ormación Laboral / Empleo, Cursos,ursos,Fecha,Fecha,Horario,Horario,Inscripción,Inscripción 16:30 horas",,,, a las Laboral de la Construcción",Martes 20,"10:00 a 15:00 horas",,,,,n Fundación Laboral de la Construcción",Miércoles 21,"10:00 a 15:00 horas",,,,,n Fundación Laboral de la Construcción",Jueves 22,"10:00 a 15:00 horas",,,,,n Fundación Laboral de la Construcción",Viernes 23,"10:00 a 15:00 horas",,,,,n Fundación Laboral de la Construcción",Martes 27,"10:00 a 16:00
Please, note the duplicated data in first row (same result with or without -l):
Cursos,ursos,Fecha,Fecha,Horario,Horario,Inscripción,Inscripción
Could this be a bug?
Please, see attached file.
Many thanks.
Hi,
This issue is still happening in current version, but only in lattice mode. Command:
java -jar target/tabula-1.0.4-SNAPSHOT-jar-with-dependencies.jar -a 108,0,720,583 -l ../res/CEPI-1-1.pdf
Shows:
jul 31, 2019 12:59:21 AM org.apache.pdfbox.pdmodel.font.PDTrueTypeFont <init>
ADVERTENCIA: Using fallback font 'LiberationSans' for 'TimesNewRomanPSMT'
"",REA DE INSERCIÓN SOCIO-LABORAL,
"",,
"",ormación Laboral / Empleo,
Cursos,ursos,Fecha,Fecha,Horario,Horario,Inscripción,Inscripción
16:30 horas",,,, a las Laboral de la Construcción",Martes 20,"10:00 a 15:00
horas",,,,,n Fundación Laboral de la Construcción",Miércoles 21,"10:00 a 15:00
horas",,,,,n Fundación Laboral de la Construcción",Jueves 22,"10:00 a 15:00
horas",,,,,n Fundación Laboral de la Construcción",Viernes 23,"10:00 a 15:00
horas",,,,,n Fundación Laboral de la Construcción",Martes 27,"10:00 a 16:00
Again, duplicated words (and some missing characters). Also, The mapping from the original table structure to the csv output is strange (or not very clear to my eyes).
On the other hand, without lattice mode, there is no duplication, but at least one cell is split (see: "Prevencion de riesgos laborales"):
java -jar target/tabula-1.0.4-SNAPSHOT-jar-with-dependencies.jar -a 108,0,720,583 ../res/CEPI-1-1.pdf
The output is:
jul 31, 2019 1:04:14 AM org.apache.pdfbox.pdmodel.font.PDTrueTypeFont <init>
ADVERTENCIA: Using fallback font 'LiberationSans' for 'TimesNewRomanPSMT'
""
""
PROGRAMACIÓN CEPI MADRID CENTRO-ARGANZUELA
NOVIEMBRE 2018
""
ÁREA DE INSERCIÓN SOCIO-LABORAL
""
""
Formación Laboral / Empleo
""
""
Cursos Fecha Horario Inscripción
Prevención de riesgos laborales en la
construcción. Electricidad y Fontanería. Martes 20 10:00 a 15:00
Módulo 1 (5 horas) horas
Colaboración Fundación Laboral de la Construcción
""
Prevención de riesgos laborales en la
""
construcción. Electricidad y Fontanería. Miércoles 21 10:00 a 15:00
Módulo 2 (5 horas) horas
Colaboración Fundación Laboral de la Construcción
Prevención de riesgos laborales en la Lunes 12 a las
construcción. Electricidad y Fontanería. Jueves 22 10:00 a 15:00 16:30 horas
Módulo 3 (5 horas) horas
Colaboración Fundación Laboral de la Construcción
Prevención de riesgos laborales en la
construcción. Electricidad y Fontanería. Viernes 23 10:00 a 15:00
Módulo 5 (5 horas) horas
Colaboración Fundación Laboral de la Construcción
Prevención de riesgos laborales en la
construcción. Electricidad y Fontanería. Martes 27 10:00 a 16:00
Módulo 5 (6 horas) horas
Colaboración Fundación Laboral de la Construcción