Aspose::Pdf::Facades::Form class

Form class

Class representing Acro form object.

class Form : public Aspose::Pdf::Facades::SaveableFacade

Methods

MethodDescription
BindPdf(System::String) overrideInitializes the facade.
BindPdf(System::SharedPtr<System::IO::Stream>) overrideInitializes the facade.
BindPdf(System::SharedPtr<Aspose::Pdf::Document>) overrideInitializes the facade.
virtual BindPdf(System::SharedPtr<Document>)Binds PDF document for editing.
Close() overrideCloses opened files without any changes.
Dispose() overrideDisposes the facade.
ExportFdf(System::SharedPtr<System::IO::Stream>)Exports the content of the fields of the pdf into the fdf stream.
ExportXfdf(System::SharedPtr<System::IO::Stream>)Exports the content of the fields of the pdf into the xml stream. The button field’s value will not be exported.
ExportXml(System::SharedPtr<System::IO::Stream>)Exports the content of the fields of the pdf into the xml stream. The button field’s value will not be exported.
ExtractXfaData(System::SharedPtr<System::IO::Stream>)Extracts XFA data packet.
FillBarcodeField(System::String, System::String)Fill a barcode field according to its fully qualified field name.
FillField(System::String, System::String)Fills the field with a valid value according to a fully qualified field name. Before filling the fields, every field’s names and its corresponding valid values must be known. Both the fields’ name and values are case sensitive. Please note that Aspose.Pdf.Facades supports only full field names and does not work with partial field names in contrast with Aspose.Pdf.Kit; For example if field has full name “Form.Subform.TextField” you should specify full name and not “TextField”. You can use FieldNames property to explore existing field names and search required field by its partial name.
FillField(System::String, int32_t)Fills the radio box field with a valid index value according to a fully qualified field name. Before filling the fields, only field’s name must be known. While the value can be specified by its index. Notice: Only be applied to Radio Box, Combo Box and List Box fields. Please note that Aspose.Pdf.Facades supports only full field names and does not work with partial field names in contrast with Aspose.Pdf.Kit; For example if field has full name “Form.Subform.ListBoxField” you should specify full name and not “ListBoxField”. You can use FieldNames property to explore existing field names and search required field by its partial name.
FillField(System::String, bool)Fills the check box field with a boolean value. Notice: Only be applied to Check Box. Please note that Aspose.Pdf.Facades supports only full field names and does not work with partial field names in contrast with Aspose.Pdf.Kit; For example if field has full name “Form.Subform.CheckBoxField” you should specify full name and not “CheckBoxField”. You can use FieldNames property to explore existing field names and search required field by its partial name.
FillField(System::String, System::ArrayPtr<System::String>)Fill a field with multiple selections.Note: only for AcroForm List Box Field.
FillField(System::String, System::String, bool)Fills field with specified value.
FillFields(System::ArrayPtr<System::String>, System::ArrayPtr<System::String>, System::SharedPtr<System::IO::Stream>&)Fills the text box fields with a text values and save the document. Relevant for signed documents. Notice: Only be applied to Text Box. Both the fields’ name and values are case sensitive.
FillImageField(System::String, System::String)Pastes an image onto the existing button field as its appearance according to its fully qualified field name.
FillImageField(System::String, System::SharedPtr<System::IO::Stream>)Overloads function of FillImageField. The input is a image stream.
FlattenAllFields()Flattens all the fields.
FlattenField(System::String)Flattens a specified field with the fully qualified field name. Any other field will remain unchangable. If the fieldName is invalid, all the fields will remain unchangable.
Form(System::SharedPtr<System::IO::Stream>, System::SharedPtr<System::IO::Stream>)Constructor of Form with two stream parameters. Specify same source and destination stream for incremental update.
Form()Construtcor of Form without parameters.
Form(System::String)Constructor of Form.
Form(System::SharedPtr<System::IO::Stream>)Constructor for form.
Form(System::String, System::String)Constructor of Form class. Specify same source file name and destination file name to perform incremental update.
Form(System::String, System::SharedPtr<System::IO::Stream>)Constructor of Form.
Form(System::SharedPtr<System::IO::Stream>, System::String)Constructor of Form.
Form(System::SharedPtr<Aspose::Pdf::Document>)Initializes new Form object on base of the document .
Form(System::SharedPtr<Aspose::Pdf::Document>, System::String)Initializes new Form object on base of the document .
Form(System::SharedPtr<Aspose::Pdf::Document>, System::SharedPtr<System::IO::Stream>)Initializes new Form object on base of the document .
Form(System::SharedPtr<System::IO::Stream>, System::SharedPtr<System::Web::HttpResponse>)Creates form which will save result into HttpResponse object.
Form(System::String, System::SharedPtr<System::Web::HttpResponse>)Creates form which will save result into HttpResponse object.
get_AttachmentName() constGets name of attachment when result of operation is stored into HttpResponse objects as attachment.
get_ContentDisposition() constGets how content will be stored when result of operation is stored into HttpResponse object. Possible value: inline / attachment. Default: inline.
get_DestFileName() constGets destiination file name.
get_DestStream() constGets destination stream.
get_Document() constGets the document facade is working on.
get_FieldNames()Gets list of field names on the form.
get_FormSubmitButtonNames()Gets all form submit button names.
get_ImportResult()Result of last import operation. Array of objects which descibre result of import for each field.
get_Response() constGets Response object where result of operation will be stored.
get_SaveOptions() constGets save options when result is stored as HttpResponse. Default value: PdfSaveOptions.
get_SrcFileName() constGets source file name.
get_SrcStream() constGets source stream.
GetButtonOptionCurrentValue(System::String)Returns the current value for radio button option fields.
GetButtonOptionValues(System::String)Gets the radio button option fields and related values based on the field name. This method has meaning for radio button groups.
GetField(System::String)Gets the field’s value according to its field name.
GetFieldFacade(System::String)Returns FrofmFieldFacade object containing all appearance attributes.
GetFieldFlag(System::String)Returns flags of the field.
GetFieldLimit(System::String)Get the limitation of text field.
GetFieldType(System::String)Returns type of field.
GetFullFieldName(System::String)Gets the full field name according to its short field name.
GetRichText(System::String)Get a Rich Text field’s value, including the formattinf information of every character.
GetSubmitFlags(System::String)Returns the submit button’s submission flags.
ImportFdf(System::SharedPtr<System::IO::Stream>)Imports the content of the fields from the fdf file and put them into the new pdf.
ImportXfdf(System::SharedPtr<System::IO::Stream>)Imports the content of the fields from the xfdf(xml) file and put them into the new pdf.
ImportXml(System::SharedPtr<System::IO::Stream>)Imports the content of the fields from the xml file and put them into the new pdf.
ImportXml(System::SharedPtr<System::IO::Stream>, bool)Imports the content of the fields from the xml file and put them into the new pdf.
IsRequiredField(System::String)Determines whether field is required or not.
RenameField(System::String, System::String)Renames a field. Either AcroForm field or XFA field is OK.
Save()Saves the value of the filled fields and close the opened Pdf document.
Save(System::String) overrideSaves document into specified file.
Save(System::SharedPtr<System::IO::Stream>) overrideSaves document into specified stream.
set_AttachmentName(System::String)Sets name of attachment when result of operation is stored into HttpResponse objects as attachment.
set_ContentDisposition(Aspose::Pdf::ContentDisposition)Sets how content will be stored when result of operation is stored into HttpResponse object. Possible value: inline / attachment. Default: inline.
set_ConvertTo(PdfFormat)Sets PDF file format. Result file will be saved in specified file format. If this property is not specified then file will be save in default PDF format without conversion.
set_DestFileName(System::String)Sets destiination file name.
set_DestStream(System::SharedPtr<System::IO::Stream>)Sets destination stream.
set_Response(System::SharedPtr<System::Web::HttpResponse>)Sets Response object where result of operation will be stored.
set_SaveOptions(System::SharedPtr<Aspose::Pdf::SaveOptions>)Sets save options when result is stored as HttpResponse. Default value: PdfSaveOptions.
set_SrcFileName(System::String)Sets source file name.
set_SrcStream(System::SharedPtr<System::IO::Stream>)Sets source stream.
SetXfaData(System::SharedPtr<System::IO::Stream>)Replaces XFA data with specified data packet. Data packet may be extracted using ExtractXfaData.

See Also