SAXParseException parseException = (SAXParseException) iterator.next();
System.out.println("[" + parseException.getLineNumber() + "]: " + parseException.getLocalizedMessage());
}
} else {
PDFFiller filler = new PDFFiller(builder.getDocument());
filler.fill(originalPdf, new FileOutputStream(finalPdf), new HashMap()); // mapa de valores vai vazio em testes
}
}
public static void main(String[] args) throws IOException, JDOMException, DocumentException {