You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Gilad Denneboom (JIRA)" <ji...@apache.org> on 2014/12/23 20:59:13 UTC

[jira] [Updated] (PDFBOX-2582) Form fields missing entirely or incorrect in PDField list

     [ https://issues.apache.org/jira/browse/PDFBOX-2582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gilad Denneboom updated PDFBOX-2582:
------------------------------------
    Attachment: Rollover Mock 5.pdf

The file in question

> Form fields missing entirely or incorrect in PDField list
> ---------------------------------------------------------
>
>                 Key: PDFBOX-2582
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2582
>             Project: PDFBox
>          Issue Type: Bug
>          Components: AcroForm
>    Affects Versions: 1.8.8, 2.0.0
>         Environment: Windows 7, JRE 1.8.0_25
>            Reporter: Gilad Denneboom
>              Labels: acroform
>         Attachments: Rollover Mock 5.pdf
>
>
> Running this code on the attached file results in incorrect and missing results:
> PDDocument doc = PDDocument.load( new File(filePath) );
> PDAcroForm form = doc.getDocumentCatalog().getAcroForm();
> List<PDField> fields = form.getFields();
> for ( int i=0; i<fields.size(); i++ ) {
> 	System.out.println("Name:" + fields.get(i).getFullyQualifiedName());
> }
> The output is:
> Name:2
> Name:Step 2
> Name:Image 2
> Name:Button 2
> Name:Button 5
> Name:Image 5
> The file was generated in InDesign and the form fields created there, so they should be recognizable. You can see that the part of the form fields after the dot was removed and the two fields on page 4 are missing entirely.
> I tested it using 1.8.8 and a very recent 2.0.0 snapshot, both yielded the same results.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)