for (Iterator iterator = errors.iterator(); iterator.hasNext();) {
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
}
}