Hi, are you sure that the byteArray contains the complete PDF?
Is there a stack trace? BR Maruan > 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? > > Greets > > Simon > > Simon Baumeler | Informatiker Applikationsentwickler EFZ | Junior Software > Engineer > > > 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 | www.ajila.com > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org