Is there a way of converting a com.adobe.idp.Document type to a byte array (other than reading the input stream into a byte array)?
The following site mentions that Document type can be converted to File, InputStream or a byte array but doesn't give an example for the case of byte array.
I don't believe you can get the byte array from the Document object directly.
The url you provide only points to the main livedocs. Can you post the url at the end of the page where it says Current Page: http... where you see this.