try {
// Create a InputStream that reads the content.
stream = rawDocument.getContentAsStream();
// Parse the content
PDFParser parser = new PDFParser(stream);
parser.parse();
pdfDocument = parser.getPDDocument();
// Decrypt the PDF-Dokument
if (pdfDocument.isEncrypted()) {
mLog.debug("Document is encrypted: " + url);
StandardDecryptionMaterial sdm = new StandardDecryptionMaterial("");