[ https://issues.apache.org/jira/browse/PDFBOX-3596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15699390#comment-15699390 ]
Tilman Hausherr commented on PDFBOX-3596: ----------------------------------------- Very mysterious - when changing FDFField.setValue like this {code} - cos = COSName.getPDFName((String) value); + cos = new COSString((String) value); {code} it works. But this would mean that it has never worked all these years?! > FDFDocument.loadXFDF not working > -------------------------------- > > Key: PDFBOX-3596 > URL: https://issues.apache.org/jira/browse/PDFBOX-3596 > Project: PDFBox > Issue Type: Bug > Components: PDModel > Affects Versions: 2.0.3 > Reporter: Matt Wise > > I have attached sample files that I used for testing in the external issue > URL. > I am trying to read in the values of each of the fields to create a font > subset, however when I try to read the value of the fields, a blank line is > returned. On closer inspection, the value stored in the field is a COSName > object. When I set the value manually using field.setValue the value stored > is a COSString object and it works correctly. > Also, when trying to save the xfdf, the values are omitted. > Expected: > Imported XFDF values are stored as COSString objects > saveXFDF correctly outputs values. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org