this.scrutinizer = scrutinizer;
}
public void run(PDDocument document) {
PDDocumentCatalog catalog = document.getDocumentCatalog();
PDAcroForm af = catalog.getAcroForm();
if (af != null) {
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = null;
Document doc = null;
String xml = null;
boolean parsingerror = false;
try {
db = dbf.newDocumentBuilder();
InputSource is = new InputSource();
PDXFA xfa = af.getXFA();
if (xfa == null)
return;
xml = DocumentAdapter.xmlFromXFA(xfa);
is.setCharacterStream(new StringReader(xml));
doc = db.parse(is);