Use a PDF for the PrintPDF feature, this works much better.

To create a HTML from PDF, use the ExtractText feature with the "-html" option
https://pdfbox.apache.org/commandline/#extractText

Tilman

Am 17.12.2014 um 20:30 schrieb Amanda Burma:
Hello,

I just found this solution, and am not certain where I've gone wrong.

Anyone have any tips based on the following error?

MandyBookAir:Downloads amanda$ java -jar pdfbox-app-1.8.8.jar PrintPDF -silentPrint /Users/amanda/Documents/froglogic/Marketing/Partners/Polarion/results/HTMLReports/report.html
PrintPDF failed with the following exception:
java.io.IOException: Error: End-of-File, expected line
at org.apache.pdfbox.pdfparser.BaseParser.readLine(BaseParser.java:1517) at org.apache.pdfbox.pdfparser.PDFParser.parseHeader(PDFParser.java:372)
    at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:186)
    at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1219)
    at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1186)
    at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1111)
    at org.apache.pdfbox.PrintPDF.main(PrintPDF.java:100)
    at org.apache.pdfbox.PDFBox.main(PDFBox.java:74)

Thanks,
Amanda


Reply via email to