Using PdfBox, how do I retrieve contents of PDDocument as a byte array?

Viewed 24482

I am currently using PdfBox as the driver for a pdf-file editor application. I need the contents of the PdfBox representation of a pdf file (PDDocument) as a byte array. Does anyone know how to do this?

1 Answers
Related