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

Maruan Sahyoun updated PDFBOX-923:
----------------------------------
    Attachment: pdf_output-2.0.0.pdf

File after import of XFDF using PDFBox 2.0.0

> pdf gets messed up when updated with xfdf data
> ----------------------------------------------
>
>                 Key: PDFBOX-923
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-923
>             Project: PDFBox
>          Issue Type: Bug
>          Components: AcroForm
>    Affects Versions: 1.3.1
>         Environment: windows 7, java 1.6
>            Reporter: Madhav Vodnala
>            Assignee: Maruan Sahyoun
>             Fix For: 2.0.0
>
>         Attachments: ar104-1.10.0.pdf, form_data.xfdf, pdf_output-2.0.0.pdf, 
> pdf_output.pdf
>
>
> we load a pdf file and update it with an xfdf file, the resulting pdf is all 
> mixed up.
> ( you can open pdf_output.pdf to see how it looks)
>               PDDocument pdf = PDDocument.load("ar104-1.10.0.pdf");
>               PDDocumentCatalog docCatalog = pdf.getDocumentCatalog();
>               PDAcroForm acroForm = docCatalog.getAcroForm(); 
>               FDFDocument fdfdoc=FDFDocument.loadXFDF(new 
> File("form_data.xfdf"));
>               acroForm.importFDF(fdfdoc);
>               pdf.save("pdf_output.pdf");
>               System.out.println("pdf created successfully");
> Please see attached 
> 1. input pdf file 
> 2. the xfdf file( created from the content submitted by the input file) and 
> 3. the messed up output pdf file



--
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

Reply via email to