FormEditor

Tổng quan

FormEditor là một lớp trong Aspose.PDF FOSS cho C++.

Lớp này cung cấp 53 phương thức để làm việc với các đối tượng FormEditor trong các chương trình C++. Các phương thức khả dụng bao gồm: AddField, AddFieldScript, AddListItem, AddSubmitBtn, ConvertTo, CopyInnerField, CopyOuterField, DecorateField, DelListItem, DestFileName, ExportItems, Facade, và 25 phương thức bổ sung. Tất cả các thành viên công cộng đều có thể truy cập bởi bất kỳ ứng dụng C++ nào sau khi cài đặt gói Aspose.PDF FOSS for C++.

Phương thức

Chữ kýMô tả
FormEditor()Gọi FormEditor trên đối tượng FormEditor này.
Save()Gọi Save trên đối tượng FormEditor này.
AddField(fieldType: FieldType, fieldName: std::string, pageNum: int, llx: float, lly: float, urx: float, ury: float) → boolGọi AddField(fieldType, fieldName, pageNum, llx, lly, urx, ury) trên đối tượng FormEditor này.
AddField(fieldType: FieldType, fieldName: std::string, fieldId: std::string, pageNum: int, llx: float, lly: float, urx: float, ury: float) → boolGọi AddField(fieldType, fieldName, fieldId, pageNum, llx, lly, urx, ury) trên đối tượng FormEditor này.
RemoveField(fieldName: std::string)Gọi RemoveField(fieldName) trên đối tượng FormEditor này.
SetFieldAttribute(fieldName: std::string, flag: PropertyFlag) → boolĐặt giá trị thuộc tính trường.
SetFieldAppearance(fieldName: std::string, flag: Aspose::Pdf::Annotations::AnnotationFlags) → boolĐặt giá trị hiển thị của trường.
GetFieldAppearance(fieldName: std::string) → Aspose::Pdf::Annotations::AnnotationFlagsGọi GetFieldAppearance(fieldName) trên đối tượng FormEditor này.
SetSubmitFlag(fieldName: std::string, flag: SubmitFormFlag) → boolĐặt giá trị cờ submit.
SetSubmitUrl(fieldName: std::string, url: std::string) → boolĐặt giá trị URL gửi.
SetFieldLimit(fieldName: std::string, fieldLimit: int) → boolĐặt giá trị giới hạn trường.
SetFieldCombNumber(fieldName: std::string, combNumber: int) → boolĐặt giá trị số comb của trường.
MoveField(fieldName: std::string, llx: float, lly: float, urx: float, ury: float) → boolGọi MoveField(fieldName, llx, lly, urx, ury) trên đối tượng FormEditor này.
SetFieldScript(fieldName: std::string, script: std::string) → boolĐặt giá trị script của trường.
AddFieldScript(fieldName: std::string, script: std::string) → boolGọi AddFieldScript(fieldName, script) trên đối tượng FormEditor này.
Single2Multiple(fieldName: std::string) → boolGọi Single2Multiple(fieldName) trên đối tượng FormEditor này.
SetFieldAlignment(fieldName: std::string, alignment: int) → boolĐặt giá trị căn chỉnh trường.
SetFieldAlignmentV(fieldName: std::string, alignment: int) → boolĐặt giá trị v của căn chỉnh trường.
ResetFacade()Gọi ResetFacade trên đối tượng FormEditor này.
ResetInnerFacade()Gọi ResetInnerFacade trên đối tượng FormEditor này.
CopyInnerField(fieldName: std::string, newFieldName: std::string, pageNum: int)Gọi CopyInnerField(fieldName, newFieldName, pageNum) trên đối tượng FormEditor này.
CopyInnerField(fieldName: std::string, newFieldName: std::string, pageNum: int, offsetX: float, offsetY: float)Gọi CopyInnerField(fieldName, newFieldName, pageNum, offsetX, offsetY) trên đối tượng FormEditor này.
CopyOuterField(fieldName: std::string, newFieldName: std::string)Gọi CopyOuterField(fieldName, newFieldName) trên đối tượng FormEditor này.
CopyOuterField(fieldName: std::string, newFieldName: std::string, pageNum: int)Gọi CopyOuterField(fieldName, newFieldName, pageNum) trên đối tượng FormEditor này.
CopyOuterField(fieldName: std::string, newFieldName: std::string, pageNum: int, offsetX: float, offsetY: float)Gọi CopyOuterField(fieldName, newFieldName, pageNum, offsetX, offsetY) trên đối tượng FormEditor này.
DecorateField(fieldName: std::string)Gọi DecorateField(fieldName) trên đối tượng FormEditor này.
DecorateField(fieldType: FieldType)Gọi DecorateField(fieldType) trên đối tượng FormEditor này.
DecorateField()
RenameField(fieldName: std::string, newFieldName: std::string)Gọi RenameField(fieldName, newFieldName) trên đối tượng FormEditor này.
RemoveFieldAction(fieldName: std::string)Gọi RemoveFieldAction(fieldName) trên đối tượng FormEditor này.
AddSubmitBtn(fieldName: std::string, pageNum: int, buttonName: std::string, url: std::string, llx: float, lly: float, urx: float, ury: float)Gọi AddSubmitBtn(fieldName, pageNum, buttonName, url, llx, lly, urx, ury) trên đối tượng FormEditor này.
AddListItem(fieldName: std::string, item: std::string)Gọi AddListItem(fieldName, item) trên đối tượng FormEditor này.
AddListItem(fieldName: std::string, items: std::vector<std::string>)Gọi AddListItem(fieldName, items) trên đối tượng FormEditor này.
DelListItem(fieldName: std::string, item: std::string)Gọi DelListItem(fieldName, item) trên đối tượng FormEditor này.
SrcFileName() → std::stringGọi SrcFileName trên đối tượng FormEditor này.
SrcFileName(value: std::string)Gọi SrcFileName(value) trên đối tượng FormEditor này.
DestFileName() → std::stringGọi DestFileName trên đối tượng FormEditor này.
DestFileName(value: std::string)Gọi DestFileName(value) trên đối tượng FormEditor này.
ConvertTo(value: Aspose::Pdf::PdfFormat)Gọi ConvertTo(value) trên đối tượng FormEditor này.
Items() → std::vector<std::string>Gọi Items trên đối tượng FormEditor này.
Items(value: std::vector<std::string>)Gọi Items(value) trên đối tượng FormEditor này.
ExportItems() → std::vector<std::vector<std::string>>Gọi ExportItems trên đối tượng FormEditor này.
ExportItems(value: std::vector<std::vector<std::string>>)Gọi ExportItems(value) trên đối tượng FormEditor này.
Facade() → FormFieldFacadeGọi Facade trên đối tượng FormEditor này.
Facade(value: FormFieldFacade)Gọi Facade(value) trên đối tượng FormEditor này.
RadioGap() → floatGọi RadioGap trên đối tượng FormEditor này.
RadioGap(value: float)Gọi RadioGap(value) trên đối tượng FormEditor này.
RadioHoriz() → boolGọi RadioHoriz trên đối tượng FormEditor này.
RadioHoriz(value: bool)Gọi RadioHoriz(value) trên đối tượng FormEditor này.
RadioButtonItemSize() → doubleGọi RadioButtonItemSize trên đối tượng FormEditor này.
RadioButtonItemSize(value: double)Gọi RadioButtonItemSize(value) trên đối tượng FormEditor này.
SubmitFlag() → SubmitFormFlagGọi SubmitFlag trên đối tượng FormEditor này.
SubmitFlag(value: SubmitFormFlag)Gọi SubmitFlag(value) trên đối tượng FormEditor này.

Xem thêm

 Tiếng Việt