Product:
Product Version:
Please give a brief summary of your issue:
Sample code used to merge the PDF and xfdf file
FDFDoc fdf_doc1 = new FDFDoc(FDFDoc.CreateFromXFDF(input_path + "form1_data.xfdf"));
fdf_doc1.Save(output_path + "form1_data.fdf");
// annotations
Console.WriteLine("Import annotations from XFDF to FDF.");
FDFDoc fdf_doc2 = new FDFDoc(FDFDoc.CreateFromXFDF(input_path + "form1_annots.xfdf"));
fdf_doc2.Save(output_path + "form1_annots.fdf");
// FDF to PDF
// form fields
Console.WriteLine("Merge form field data from FDF.");
PDFDoc doc = new PDFDoc(input_path + "webviewer-demo-annotated.pdf");
doc.InitSecurityHandler();
doc.FDFMerge(fdf_doc1);
// To use PDFNet form field appearance generation instead of relying on
// Acrobat, uncomment the following two lines:
// doc.RefreshFieldAppearances();
// doc.GetAcroForm().Put("NeedAppearances", Obj.CreateBool(false));
doc.Save(output_path + "form1_filled.pdf", SDFDoc.SaveOptions.e_linearized);
// annotations
Console.WriteLine("Merge annotations from FDF.");
doc.FDFMerge(fdf_doc2);
doc.Save(output_path + "form1_filled_with_annots.pdf", SDFDoc.SaveOptions.e_linearized);
doc.Close();
Console.WriteLine("Done.");
(Think of this as an email subject)
Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
Please provide a link to a minimal sample where the issue is reproducible: