THPDFPage.CreateTextField Method
方法摘要: THPDFPage.CreateTextField Method
声明
function CreateTextField(const FieldName, InitialValue: AnsiString; Rectangle: TRect; MaxLen: Integer = 0; Flags: THPDFFormFieldFlags = []): THPDFAcroFormField;
单元
HPDFDoc
参数
| 名称 | 用途 |
|---|---|
FieldName | Name of the form field |
InitialValue | Initial text value |
Rectangle | Widget rectangle on the page |
MaxLen | Maximum accepted text length, or 0 for no explicit limit |
Flags | Additional form field flags |
返回值
THPDFAcroFormField wrapper for the created text field
使用说明
- Use the returned wrapper when the text field needs additional appearance or action configuration
- Use THPDFPage.AddTextField for the simpler one-call workflow
- 页面级更改会影响同一页面的后续操作符;临时设置不应外泄时,请保存并恢复图形状态