You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2014/11/02 15:51:33 UTC

[jira] [Resolved] (PDFBOX-2419) XFDF export is not XML compliant

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

Andreas Lehmkühler resolved PDFBOX-2419.
----------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0
         Assignee: Andreas Lehmkühler

I've added an escapeXML method to replace special characters. This is just a workaround. We should replace the current implementation with one using JAXP. I've created PDFBOX-2472 as a follow up.

Thanks for the report and the analysis!

> XFDF export is not XML compliant
> --------------------------------
>
>                 Key: PDFBOX-2419
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2419
>             Project: PDFBox
>          Issue Type: Bug
>          Components: AcroForm
>    Affects Versions: 1.8.7
>            Reporter: Laurent Richard
>            Assignee: Andreas Lehmkühler
>              Labels: FDF
>             Fix For: 1.8.8, 2.0.0
>
>         Attachments: SampleForm.pdf
>
>
> The XFDF content is written as a simple string instead of XML nodes.
> As a result, field values containing special characters (&, <, >, ...) are not escaped and the resulting XML is invalid.



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