|
Tutorial - Flatten Form Fields |
Top Previous Next |
|
This tutorial guides you to flatten form fields present in PDF document.
To flatten the form fields: Using the function FlattenFormFields by providing the index or the name of the form field can flatten the form field present in the PDF document.
[VB]
PDFDoc.LoadFromFile (InputFile4) PDFDoc.FlattenFormFieldsByIndex (0) PDFDoc.FlattenFormFieldsByIndex (2) PDFDoc.FlattenFormFieldsByName ("company")
' On page PDFDoc.FlattenFormFieldsOnPage ("1") PDFDoc.SaveToFile (OutputFile)
[VC++]
//Load the Document PDFDoc.LoadFromFile(InputFile4); // Flattening form fields by index And by name PDFDoc.FlattenFormFieldsByIndex(0); PDFDoc.FlattenFormFieldsByIndex(2); PDFDoc.FlattenFormFieldsByName("company"); //Save the Document PDFDoc.SaveToFile(OutputFile); //On Page //Load the Document PDFDoc.LoadFromFile(InputFile4); // Flattening form fields On Page 1 PDFDoc.FlattenFormFieldsOnPage("1"); //Save the Document PDFDoc.SaveToFile(OutputFile);
[CS]
PDFDoc.LoadFromFile(InputFile4); PDFDoc.FlattenFormFieldsByIndex(0); PDFDoc.FlattenFormFieldsByIndex(2); PDFDoc.FlattenFormFieldsByName("company"); PDFDoc.SaveToFile(OutputFile); PDFDoc.LoadFromFile(InputFile4); PDFDoc.FlattenFormFieldsOnPage("1"); PDFDoc.SaveToFile(OutputFile);
|