You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Maruan Sahyoun (JIRA)" <ji...@apache.org> on 2015/02/03 23:32:38 UTC

[jira] [Resolved] (PDFBOX-923) pdf gets messed up when updated with xfdf data

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

Maruan Sahyoun resolved PDFBOX-923.
-----------------------------------
    Resolution: Fixed

The data looks similar to the import by Adobe Reader. Further enhancements will be dealt with in PDFBOX-2333 and subsequent issues.

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