FormEditor.SetFieldAppearance

FormEditor.SetFieldAppearance method

Set field flags

public bool SetFieldAppearance(string fieldName, AnnotationFlags flags)
ParameterTypeDescription
fieldNameStringName of field whose flags should be updated.
flagsAnnotationFlagsFlag 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