Am 25.08.2025 um 22:45 schrieb Poisson, David (DGRI):
You may disregard my last comment. I copied the wrong file and passed
it through our modified legacy system, wrongfully thinking it had solved our
problem. But resetting the inputStream had no impact on anything.
I tried your code on the current 1.8 version and added iStream.reset()
before new PDFParser() and it worked with the v3 and the v4 files.
Without it, I get this error, which is classic on empty files:
java.io.IOException: Error: End-of-File, expected line
at
org.apache.pdfbox.pdfparser.BaseParser.readLine(BaseParser.java:1523)
at
org.apache.pdfbox.pdfparser.PDFParser.parseHeader(PDFParser.java:360)
at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:186)
at
com.tilman.mavenpdfboxtest18.Mail14_8_2025_Poisson_PDFLoader.openPDFv1(Mail14_8_2025_Poisson_PDFLoader.java:88)
at
com.tilman.mavenpdfboxtest18.Mail14_8_2025_Poisson_PDFLoader.main(Mail14_8_2025_Poisson_PDFLoader.java:34)
Tilman
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]