We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to I use public bool SetFieldAttribute()?

Can you give an example of how to use this method?


This message was posted using Page2Forum from FormEditor.SetFieldAttribute Method - Aspose.Pdf.Kit for .NET and Java

Hi,

//set two existing text_fields in in.pdf to ‘readonly’ and ‘required’

        FormEditor formeditor = new FormEditor(In_Path + in.pdf, OutPath + SetFieldFlag.pdf);
formeditor.SetFieldAttribute(
TextField1, PropertyFlag.ReadOnly);
formeditor.SetFieldAttribute(
TextField2, PropertyFlag.Required);
formeditor.Save();