SetFormFieldSpecialFormat

表单字段、操作

描述

为邮政编码、ZIP+4 代码、电话号码或美国社会保障号码添加匹配的 AFSpecial_Keystroke 和 AFSpecial_Format 动作

语法

Function TPDFlib.SetFormFieldSpecialFormat(Index: Integer; SpecialFormat: TPDFlibFormSpecialFormat): Integer;

参数

Index接收击键与格式动作的表单域,从 1 开始的索引
SpecialFormatfsfZipCode 0、fsfZipPlus4 1、fsfPhoneNumber 2 或 fsfSocialSecurityNumber 3;超出枚举的值会被拒绝

返回值

成功时返回 1,字段无效或 PDF/A 模式处于活动状态时返回 0

另请参阅

TPDFlibFormSpecialFormat, SetFormFieldArbitraryMask