SetFieldAppearance

FormEditor.SetFieldAppearance method

Set field flags

public bool SetFieldAppearance(string fieldName, AnnotationFlags flags)
Parameter Type Description
fieldName String Name of field whose flags should be updated.
flags AnnotationFlags Flag of the field.

Return Value

true if flags were updated successfully.

Examples

FormEditor formEditor = new FormEditor("PdfForm1.pdf", "FormEditor_SetFieldAppearance.pdf");
formEditor.SetFieldAppearance("Name", AnnotationFlags.Hidden);
formEditor.SetFieldAppearance("Phone", AnnotationFlags.NoView | AnnotationFlags.Print);

See Also