Am 24.04.2020 um 16:04 schrieb Simon Baumeler:

Hey

I am trying to create a PDDocument and fill it with data from a pdf that I get over an API as a byte array.

When I try to execute the following command: “PDDocument pdfDocument = new PDDocument().load(byteArray);” I always get an java.io.IOException: Error: End-of-File Error and I don’t know why. I tried different pdf files but none worked. Does anybody know this issue or can help me?


Save the content of the byte array into a file to see what's really in it / compare the content with the original file.

Also make sure you're using the latest version, with is 2.0.19.

Tilman




Greets

Simon

*Simon Baumeler* | Informatiker Applikationsentwickler EFZ | Junior Software Engineer

id:5BC4E55C-070F-4D42-8D1C-BBD4BE51B72C

        

*FORMS YOUR DIGITAL PROCESS*

ajila ag | Centralstrasse 8b | CH-6210 Sursee

T +41 41 555 52 49 | M +41 76 417 04 34

simon.baume...@ajila.com <mailto:simon.baume...@ajila.com> | _www.ajila.com <http://www.ajila.com>_


Reply via email to