Bernd Engelhardt created PDFBOX-3613:

             Summary: FDFField creates wrong object type, when loaded from XML
                 Key: PDFBOX-3613
             Project: PDFBox
          Issue Type: Bug
          Components: AcroForm
    Affects Versions: 2.0.3
            Reporter: Bernd Engelhardt
             Fix For: 2.0.3

When a FDFDocument is loaded from file with

FDFDocument fdfDocument = FDFDocument.loadXFDF(is)

and afterwards the same documet is saved via


the output document contains only empty fields. The problem is that

FDFField(Element fieldXML)

creates with "setValue" not a "COSString", what is expected by "getValue", when 
saving the document.

FDFField should use 

setValue(new COSString(XMLUtil.getNodeValue(child)));

to create correct values for the XML nodes. Otherwise the import of FDF 
documents via e.g.


does not work correct. 

Patch for 2.0.3 is attached.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to