Command line tool to convert page layout files to the latest PAGE XML format. It supports all previous versions of the PAGE format as well as ALTO XML, FineReader XML, and HOCR
Apache License 2.0
23
stars
6
forks
source link
NullPointerException when trying to convert ALTO to PAGE #11
I am trying to convert ALTO XML (2.0) to PAGE XML using version 1.5 as follows:
$ java -jar ~/Software/JPageConverter\ 1.5/PageConverter.jar -source-xml FULLTEXT/fileocr00013.xml -target-xml 0013.xml
Could not save target PAGE XML file: 0013.xml
java.lang.NullPointerException
at org.primaresearch.dla.page.io.xml.PageXmlInputOutput.writePage(PageXmlInputOutput.java:165)
at org.primaresearch.dla.page.converter.PageConverter.run(PageConverter.java:188)
at org.primaresearch.dla.page.converter.PageConverter.main(PageConverter.java:103)
I am trying to convert ALTO XML (2.0) to PAGE XML using version 1.5 as follows:
ALTO file for testing sample_alto.zip.
Any hints would be highly appreciated!