if (config.getExtractAcroFormContent() == true){
extractAcroForm(pdf, handler);
}
handler.endDocument();
} catch (TikaException e){
throw new IOExceptionWithCause("Unable to end a document", e);
} catch (SAXException e) {
throw new IOExceptionWithCause("Unable to end a document", e);
}
}