[
https://issues.apache.org/jira/browse/PDFBOX-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Steve Deal updated PDFBOX-1294:
-------------------------------
Description:
The Document Properties names and values are readable.
The PDF Form fields names are readable but the values of the PDF Forms fields
are all null.
Attached file demonstrates problem using this code:
PDDocument pdDoc = PDDocument.load(filename);
PDDocumentCatalog docCatalog = pdDoc.getDocumentCatalog();
PDAcroForm acroForm = docCatalog.getAcroForm();
System.out.println("acroForm COSObject:
"+acroForm.getCOSObject().toString());
List fldList = acroForm.getFields();
Iterator fIter = fldList.iterator();
while(fIter.hasNext()){
PDField field = (PDField)fIter.next();
System.out.println("----------------------------------------------");
System.out.print("field FQN: " +
field.getFullyQualifiedName());
System.out.print(" type: " + field.getFieldType() );
System.out.println(" value: " + field.getValue() );
}
was:
The Document Properties names and values are readable.
The PDF Form fields names are readable but the values of the PDF Forms fields
are all null.
Attached file demonstrates problem.
> Unable to read values from PDF Form
> -----------------------------------
>
> Key: PDFBOX-1294
> URL: https://issues.apache.org/jira/browse/PDFBOX-1294
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel.AcroForm
> Affects Versions: 1.6.0
> Environment: Windows 7, eclipse Indigo, Java 1.6.0
> Reporter: Steve Deal
> Labels: Form, PDF
> Attachments: Proposal_for_IssueReporting.pdf
>
>
> The Document Properties names and values are readable.
> The PDF Form fields names are readable but the values of the PDF Forms fields
> are all null.
> Attached file demonstrates problem using this code:
> PDDocument pdDoc = PDDocument.load(filename);
>
> PDDocumentCatalog docCatalog = pdDoc.getDocumentCatalog();
> PDAcroForm acroForm = docCatalog.getAcroForm();
> System.out.println("acroForm COSObject:
> "+acroForm.getCOSObject().toString());
> List fldList = acroForm.getFields();
> Iterator fIter = fldList.iterator();
> while(fIter.hasNext()){
> PDField field = (PDField)fIter.next();
>
> System.out.println("----------------------------------------------");
> System.out.print("field FQN: " +
> field.getFullyQualifiedName());
> System.out.print(" type: " + field.getFieldType() );
> System.out.println(" value: " + field.getValue() );
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira