THPDFPage.CreateTextField Method

为 AcroForm 工作流提供 CreateTextField 行为。当周边 API 族需要对 PDF 对象、页面内容、资源、合规性或诊断进行显式控制时使用它

声明

function CreateTextField(const FieldName, InitialValue: AnsiString; Rectangle: TRect; MaxLen: Integer= 0; Flags: THPDFFormFieldFlags= []): THPDFAcroFormField;

单元

HPDFDoc

参数

名称用途
FieldName该辅助方法所针对的 AcroForm 字段名称或字段字典
InitialValueCreateTextField 使用的输入
Rectangle应用操作的页面区域或控件矩形
MaxLenCreateTextField 使用的输入
FlagsCreateTextField 使用的输入

返回值

返回一个 THPDFAcroFormField 值

由 Flags 组装出的字段掩码在创建、后续流式标志编辑以及保存和重新加载过程中都精确保留其整数位

有关带符号掩码值、继承与原生构建器行为,请参见 AcroForm 字段标志精度

使用说明

相关 API