FormEditor

概述

FormEditor 是 Aspose.PDF 为 C++ 提供的 FOSS 中的一个类。

该类提供 53 个用于在 C++ 程序中处理 FormEditor 对象的方法。可用的方法包括:AddField、AddFieldScript、AddListItem、AddSubmitBtn、ConvertTo、CopyInnerField、CopyOuterField、DecorateField、DelListItem、DestFileName、ExportItems、Facade,以及另外 25 个方法。安装 Aspose.PDF 为 C++ 提供的 FOSS 包后,所有公共成员对任何 C++ 应用程序均可访问。

方法

签名描述
FormEditor()在此 FormEditor 实例上调用 FormEditor。
Save()在此 FormEditor 实例上调用 Save。
AddField(fieldType: FieldType, fieldName: std::string, pageNum: int, llx: float, lly: float, urx: float, ury: float) → bool在此 FormEditor 实例上调用 AddField(fieldType, fieldName, pageNum, llx, lly, urx, ury)。
AddField(fieldType: FieldType, fieldName: std::string, fieldId: std::string, pageNum: int, llx: float, lly: float, urx: float, ury: float) → bool在此 FormEditor 实例上调用 AddField(fieldType, fieldName, fieldId, pageNum, llx, lly, urx, ury)。
RemoveField(fieldName: std::string)在此 FormEditor 实例上调用 RemoveField(fieldName)。
SetFieldAttribute(fieldName: std::string, flag: PropertyFlag) → bool设置字段属性值。
SetFieldAppearance(fieldName: std::string, flag: Aspose::Pdf::Annotations::AnnotationFlags) → bool设置字段外观值。
GetFieldAppearance(fieldName: std::string) → Aspose::Pdf::Annotations::AnnotationFlags在此 FormEditor 实例上调用 GetFieldAppearance(fieldName)。
SetSubmitFlag(fieldName: std::string, flag: SubmitFormFlag) → bool设置提交标志的值。
SetSubmitUrl(fieldName: std::string, url: std::string) → bool设置提交 URL 的值。
SetFieldLimit(fieldName: std::string, fieldLimit: int) → bool设置字段限制值。
SetFieldCombNumber(fieldName: std::string, combNumber: int) → bool设置字段 comb 编号的值。
MoveField(fieldName: std::string, llx: float, lly: float, urx: float, ury: float) → bool在此 FormEditor 实例上调用 MoveField(fieldName, llx, lly, urx, ury)。
SetFieldScript(fieldName: std::string, script: std::string) → bool设置字段脚本值。
AddFieldScript(fieldName: std::string, script: std::string) → bool在此 FormEditor 实例上调用 AddFieldScript(fieldName, script)。
Single2Multiple(fieldName: std::string) → bool在此 FormEditor 实例上调用 Single2Multiple(fieldName)。
SetFieldAlignment(fieldName: std::string, alignment: int) → bool设置字段对齐值。
SetFieldAlignmentV(fieldName: std::string, alignment: int) → bool设置字段对齐的 v 值。
ResetFacade()在此 FormEditor 实例上调用 ResetFacade。
ResetInnerFacade()在此 FormEditor 实例上调用 ResetInnerFacade。
CopyInnerField(fieldName: std::string, newFieldName: std::string, pageNum: int)在此 FormEditor 实例上调用 CopyInnerField(fieldName, newFieldName, pageNum)。
CopyInnerField(fieldName: std::string, newFieldName: std::string, pageNum: int, offsetX: float, offsetY: float)在此 FormEditor 实例上调用 CopyInnerField(fieldName, newFieldName, pageNum, offsetX, offsetY)。
CopyOuterField(fieldName: std::string, newFieldName: std::string)在此 FormEditor 实例上调用 CopyOuterField(fieldName, newFieldName)。
CopyOuterField(fieldName: std::string, newFieldName: std::string, pageNum: int)在此 FormEditor 实例上调用 CopyOuterField(fieldName, newFieldName, pageNum)。
CopyOuterField(fieldName: std::string, newFieldName: std::string, pageNum: int, offsetX: float, offsetY: float)在此 FormEditor 实例上调用 CopyOuterField(fieldName, newFieldName, pageNum, offsetX, offsetY)。
DecorateField(fieldName: std::string)在此 FormEditor 实例上调用 DecorateField(fieldName)。
DecorateField(fieldType: FieldType)在此 FormEditor 实例上调用 DecorateField(fieldType)。
DecorateField()
RenameField(fieldName: std::string, newFieldName: std::string)在此 FormEditor 实例上调用 RenameField(fieldName, newFieldName)。
RemoveFieldAction(fieldName: std::string)在此 FormEditor 实例上调用 RemoveFieldAction(fieldName)。
AddSubmitBtn(fieldName: std::string, pageNum: int, buttonName: std::string, url: std::string, llx: float, lly: float, urx: float, ury: float)在此 FormEditor 实例上调用 AddSubmitBtn(fieldName, pageNum, buttonName, url, llx, lly, urx, ury)。
AddListItem(fieldName: std::string, item: std::string)在此 FormEditor 实例上调用 AddListItem(fieldName, item)。
AddListItem(fieldName: std::string, items: std::vector<std::string>)在此 FormEditor 实例上调用 AddListItem(fieldName, items)。
DelListItem(fieldName: std::string, item: std::string)在此 FormEditor 实例上调用 DelListItem(fieldName, item)。
SrcFileName() → std::string在此 FormEditor 实例上调用 SrcFileName。
SrcFileName(value: std::string)在此 FormEditor 实例上调用 SrcFileName(value)。
DestFileName() → std::string在此 FormEditor 实例上调用 DestFileName。
DestFileName(value: std::string)在此 FormEditor 实例上调用 DestFileName(value)。
ConvertTo(value: Aspose::Pdf::PdfFormat)在此 FormEditor 实例上调用 ConvertTo(value)。
Items() → std::vector<std::string>在此 FormEditor 实例上调用 Items。
Items(value: std::vector<std::string>)在此 FormEditor 实例上调用 Items(value)。
ExportItems() → std::vector<std::vector<std::string>>在此 FormEditor 实例上调用 ExportItems。
ExportItems(value: std::vector<std::vector<std::string>>)在此 FormEditor 实例上调用 ExportItems(value)。
Facade() → FormFieldFacade在此 FormEditor 实例上调用 Facade。
Facade(value: FormFieldFacade)在此 FormEditor 实例上调用 Facade(value)。
RadioGap() → float在此 FormEditor 实例上调用 RadioGap。
RadioGap(value: float)在此 FormEditor 实例上调用 RadioGap(value)。
RadioHoriz() → bool在此 FormEditor 实例上调用 RadioHoriz。
RadioHoriz(value: bool)在此 FormEditor 实例上调用 RadioHoriz(value)。
RadioButtonItemSize() → double在此 FormEditor 实例上调用 RadioButtonItemSize。
RadioButtonItemSize(value: double)在此 FormEditor 实例上调用 RadioButtonItemSize(value)。
SubmitFlag() → SubmitFormFlag在此 FormEditor 实例上调用 SubmitFlag。
SubmitFlag(value: SubmitFormFlag)在此 FormEditor 实例上调用 SubmitFlag(value)。

另请参阅

 中文