10-30-2009 05:33 AM
11-02-2009 07:37 AM
11-03-2009 03:34 AM
………
String text = stripper.getText(pdf);
// AÑADIR CAMPOS DEL FORMULARIO
PDDocumentCatalog docCatalog = pdf.getDocumentCatalog();
PDAcroForm pdfForm = docCatalog.getAcroForm();
List myList = pdfForm.getFields();
// Obtenemos un Iterador y recorremos la lista de campos
Iterator iter = myList.iterator();
String AuxTest = new String("\n\n");
while (iter.hasNext()){
PDField field = (PDField)iter.next();
AuxTest = AuxTest + new String(field.getPartialName() + ": " + field.getValue() + " \n");
}
// Añadimos al TEXTO del PDF los campos
writer.putContent(text + AuxTest);
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.