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.