public static void PreserveRightsUsingFormClass()
{
// ExStart:PreserveRightsUsingFormClass
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_AsposePdf_Forms();
// Input and output file paths are equal, this forces incremental update when form saved.
Aspose.Pdf.Facades.Form form = new Aspose.Pdf.Facades.Form(dataDir + "input.pdf");
// Fill value in form field
form.FillField("topmostSubform[0].Page1[0].f1_29_0_[0]", "Nayyer");
// Save updated document
form.Save(dataDir + "PreserveRightsUsingFormClass_out.pdf");
// ExEnd:PreserveRightsUsingFormClass
}
}