[ 
https://issues.apache.org/jira/browse/PDFBOX-1100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13097805#comment-13097805
 ] 

Ernst Eibensteiner commented on PDFBOX-1100:
--------------------------------------------

obviously the COSDictionary does not contain the correct value:

        PDDocument pdf = PDDocument.load("C:\\tmp\\a.pdf");
        PDDocumentCatalog docCatalog = pdf.getDocumentCatalog(); 
        PDAcroForm acroForm = docCatalog.getAcroForm();
        System.out.println("acroForm COSObject: 
"+acroForm.getCOSObject().toString());
        List<PDField> list = acroForm.getFields();
        Iterator<PDField> it = list.iterator();
        while (it.hasNext()) {
          PDField field = it.next();
          System.out.println("fieldCOSObject: 
"+field.getCOSObject().toString());
        }
      
Output shows:
acroForm COSObject: ..... COSName{Fields}:COSArray{[COSObject{31, 0}, 
COSObject{32, 0}]})
correct COSObject 31 and 32 found for the Fields!

but
COSObject 31 does not contain COSName{V}
COSObject 32 does not contain COSName{V}

if I open the same document using http://www.pdftron.com/ I can see the correct 
COSName{V} for both COSObjects (Object number 31 and 32) containing the correct 
value.


> PDFMerger: Empty form fields
> ----------------------------
>
>                 Key: PDFBOX-1100
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1100
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 1.6.0
>         Environment: Windows 2008 R2
>            Reporter: Gerhard Temper
>         Attachments: a.pdf, b.pdf, c.pdf
>
>
> Merging two PDFs with form fields results in a PDF with empty fields.
> The issue seems to be similar to 
> https://issues.apache.org/jira/browse/PDFBOX-1031, but in my case i see the 
> fields but not the value in the fields.
> I use the following command to merge the PDFs:
> java -classpath pdfbox-app-1.6.0.jar org.apache.pdfbox.PDFMerger a.pdf b.pdf 
> c.pdf

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to