You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2016/11/27 09:41:58 UTC

[jira] [Commented] (PDFBOX-3596) FDFDocument.loadXFDF not working

    [ 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-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org