FormEditor.SetFieldAppearance

FormEditor.SetFieldAppearance 方法

设置字段标志

public bool SetFieldAppearance(string fieldName, AnnotationFlags flags)
参数类型描述
fieldName字符串需要更新标志的字段名称。
flagsAnnotationFlags字段的标志。

返回值

如果标志成功更新,则返回 true。

示例

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

另请参阅