You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Madhav Vodnala (JIRA)" <ji...@apache.org> on 2010/12/20 09:07:01 UTC
[jira] Updated: (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 ]
Madhav Vodnala updated PDFBOX-923:
----------------------------------
Attachment: pdf_output.pdf
form_data.xfdf
ar104-1.10.0.pdf
input file, xfdf data and the output file.
> 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
> Affects Versions: 1.3.1
> Environment: windows 7, java 1.6
> Reporter: Madhav Vodnala
> Attachments: ar104-1.10.0.pdf, form_data.xfdf, pdf_output.pdf
>
>
> we load a pdf file and update it with an xfdf file, the resulting pdf is all mixed up.
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.