The following code example creates a com.adobe.idp.Document object that is based on a byte array.
Document myPDFDocument = new Document(myByteArray);