Category / Section
How to import FDF into a PDF form?
5 mins read
It is possible to import FDF into a PDF form. To achieve this, you can load FDF file in the FileStream, then import the FDF stream data in the PdfLoadedForm.
C#
//Load an existing document. PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); // Load the existing form PdfLoadedForm form = doc.Form; // Load the FDF file FileStream stream = new FileStream("ImportFDF.fdf", FileMode.Open); // Import the FDF stream form.ImportDataFDF(stream,true); //Save the document and dispose it. doc.Save("Import.pdf"); doc.Close();
Sample Link
http://www.syncfusion.com/downloads/support/directtrac/general/FDF-1575712085.zip