Aspose::Pdf::Facades::FormEditor Class Referencefinal

Class for editing forms (ading/deleting field etc) More...

Inherits Aspose::Pdf::Facades::SaveableFacade.

Public Member Functions

System::String get_SrcFileName ()
 Gets name of source file. More...
 
void set_SrcFileName (System::String value)
 Sets name of source file. More...
 
System::String get_DestFileName ()
 Gets destination file name. More...
 
void set_DestFileName (System::String value)
 Sets destination file name. More...
 
System::SharedPtr< System::IO::Streamget_SrcStream ()
 Gets source stream. More...
 
void set_SrcStream (System::SharedPtr< System::IO::Stream > value)
 Sets source stream. More...
 
void set_ConvertTo (PdfFormat value)
 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. More...
 
System::SharedPtr< System::IO::Streamget_DestStream ()
 Gets destination stream. More...
 
void set_DestStream (System::SharedPtr< System::IO::Stream > value)
 Sets destination stream. More...
 
System::ArrayPtr< System::Stringget_Items ()
 Sets items which will be added t onewly created list box or combo box.
formEditor = new Aspose.Pdf.Facades.FormEditor("input.pdf", "output.pdf");
formEditor.Items = new string[] { "AAA", "BBB", "CCC" };
formEditor.AddField(FieldType.ListBox, "AddedListBoxField", "BBB", 1, 10, 30, 110, 130);
formEditor.Save();
More...
 
void set_Items (System::ArrayPtr< System::String > value)
 Sets items which will be added t onewly created list box or combo box.
formEditor = new Aspose.Pdf.Facades.FormEditor("input.pdf", "output.pdf");
formEditor.Items = new string[] { "AAA", "BBB", "CCC" };
formEditor.AddField(FieldType.ListBox, "AddedListBoxField", "BBB", 1, 10, 30, 110, 130);
formEditor.Save();
More...
 
System::ArrayPtr< System::ArrayPtr< System::String > > get_ExportItems ()
 Sets options for combo box with export values. More...
 
void set_ExportItems (System::ArrayPtr< System::ArrayPtr< System::String >> value)
 Sets options for combo box with export values. More...
 
System::SharedPtr< FormFieldFacadeget_Facade ()
 Sets visual attributes of the field. More...
 
void set_Facade (System::SharedPtr< FormFieldFacade > value)
 Sets visual attributes of the field. More...
 
float get_RadioGap ()
 The member to record the gap between two neighboring radio buttons in pixels,default is 50. More...
 
void set_RadioGap (float value)
 The member to record the gap between two neighboring radio buttons in pixels,default is 50. More...
 
bool get_RadioHoriz ()
 The flag to indicate whether the radios are arranged horizontally or vertically, default value is true. More...
 
void set_RadioHoriz (bool value)
 The flag to indicate whether the radios are arranged horizontally or vertically, default value is true. More...
 
double get_RadioButtonItemSize ()
 Gets size of radio button item size (when new radio button field is added).

formEditor = new Aspose.Pdf.Facades.FormEditor("PdfForm.pdf", "FormEditor_AddField_RadioButton.pdf");
formEditor.RadioGap = 4;
formEditor.RadioHoriz = false;
formEditor.RadioButtonItemSize = 20;
formEditor.Items = new string[] { "First", "Second", "Third" };
formEditor.AddField(FieldType.Radio, "AddedRadioButtonField", "Second", 1, 10, 30, 110, 130);
formEditor.Save();
More...
 
void set_RadioButtonItemSize (double value)
 Sets size of radio button item size (when new radio button field is added).

formEditor = new Aspose.Pdf.Facades.FormEditor("PdfForm.pdf", "FormEditor_AddField_RadioButton.pdf");
formEditor.RadioGap = 4;
formEditor.RadioHoriz = false;
formEditor.RadioButtonItemSize = 20;
formEditor.Items = new string[] { "First", "Second", "Third" };
formEditor.AddField(FieldType.Radio, "AddedRadioButtonField", "Second", 1, 10, 30, 110, 130);
formEditor.Save();
More...
 
SubmitFormFlag get_SubmitFlag ()
 Set the submit button's submission flags More...
 
void set_SubmitFlag (SubmitFormFlag value)
 Set the submit button's submission flags More...
 
Aspose::Pdf::ContentDisposition get_ContentDisposition ()
 Gets how content will be stored when result of operation is stored into HttpResponse object. Possible value: inline / attachment. Default: inline. More...
 
void set_ContentDisposition (Aspose::Pdf::ContentDisposition value)
 Sets how content will be stored when result of operation is stored into HttpResponse object. Possible value: inline / attachment. Default: inline. More...
 
System::SharedPtr< System::Web::HttpResponseget_Response ()
 Gets Response object where result of operation will be stored. More...
 
void set_Response (System::SharedPtr< System::Web::HttpResponse > value)
 Sets Response object where result of operation will be stored. More...
 
System::SharedPtr< Aspose::Pdf::SaveOptionsget_SaveOptions ()
 Gets save options when result is stored as HttpResponse. Default value: PdfSaveOptions. More...
 
void set_SaveOptions (System::SharedPtr< Aspose::Pdf::SaveOptions > value)
 Sets save options when result is stored as HttpResponse. Default value: PdfSaveOptions. More...
 
System::String get_AttachmentName ()
 Gets name of attachment when result of operation is stored into HttpResponse objects as attachment. More...
 
void set_AttachmentName (System::String value)
 Sets name of attachment when result of operation is stored into HttpResponse objects as attachment. More...
 
 FormEditor (System::SharedPtr< System::IO::Stream > srcStream, System::SharedPtr< System::IO::Stream > destStream)
 Constructor for FormEditor. More...
 
 FormEditor (System::String srcFileName, System::String destFileName)
 Constructor for FormEditor More...
 
 FormEditor ()
 Constructor for FormEditor. More...
 
void Save ()
 Saves changes into destination file. More...
 
bool SetFieldAttribute (System::String fieldName, PropertyFlag flag)
 Set attributes of field. More...
 
bool SetFieldAppearance (System::String fieldName, Aspose::Pdf::Annotations::AnnotationFlags flags)
 Set field flags More...
 
Aspose::Pdf::Annotations::AnnotationFlags GetFieldAppearance (System::String fieldName)
 Get field flags. More...
 
bool SetSubmitFlag (System::String fieldName, SubmitFormFlag submitFormFlag)
 Set submit flag of submit button. More...
 
bool SetSubmitUrl (System::String fieldName, System::String url)
 Sets URL of the button. More...
 
bool SetFieldLimit (System::String fieldName, int32_t fieldLimit)
 Sets maximum character count of the text field. More...
 
bool SetFieldCombNumber (System::String fieldName, int32_t combNumber)
 Sets number of combs for a regular single-line text field (the field is automatically divided into as many equally spaced positions, or combs, as the value of combNumber parameter). More...
 
bool MoveField (System::String fieldName, float llx, float lly, float urx, float ury)
 Set new position of field. More...
 
bool AddField (FieldType fieldType, System::String fieldName, int32_t pageNum, float llx, float lly, float urx, float ury)
 Add field of specified type to the form. More...
 
bool AddField (FieldType fieldType, System::String fieldName, System::String initValue, int32_t pageNum, float llx, float lly, float urx, float ury)
 Add field of specified type to the form. More...
 
void RemoveField (System::String fieldName)
 Remove field from the form. More...
 
void ResetFacade ()
 Reset all visual attribtues to empty value. More...
 
void ResetInnerFacade ()
 Reset all visual attribtues of inner facade to empty value. More...
 
void CopyInnerField (System::String fieldName, System::String newFieldName, int32_t pageNum)
 Copies an existing field to the same position in specified page number. A new document will be produced, which contains everything the source document has except for the newly copied field. More...
 
void CopyInnerField (System::String fieldName, System::String newFieldName, int32_t pageNum, float abscissa, float ordinate)
 Copies an existing field to a new position specified by both page number and ordinates. A new document will be produced, which contains everything the source document has except for the newly copied field. More...
 
void CopyOuterField (System::String srcFileName, System::String fieldName)
 Copies an existing field from one PDF document to another document with original page number and ordinates. Notice: Only for AcroForm fields (excluding radio box). More...
 
void CopyOuterField (System::String srcFileName, System::String fieldName, int32_t pageNum)
 Copies an existing field from one PDF document to another document with specified page number and original ordinates. Notice: Only for AcroForm fields (excluding radio box). More...
 
void CopyOuterField (System::String srcFileName, System::String fieldName, int32_t pageNum, float abscissa, float ordinate)
 Copies an existing field from one PDF document to another document with specified page number and ordinates. Notice: Only for AcroForm fields (excluding radio box). More...
 
void DecorateField (System::String fieldName)
 Changes visual attributes of the specified field. More...
 
void DecorateField (FieldType fieldType)
 Changes visual attributes of all fields with the specified field type. More...
 
void DecorateField ()
 Changes visual attributes of all fields in the PDF document. More...
 
void RenameField (System::String fieldName, System::String newFieldName)
 Change name of the field. More...
 
void RemoveFieldAction (System::String fieldName)
 Remove submit action of the field. More...
 
void AddSubmitBtn (System::String fieldName, int32_t page, System::String label, System::String url, float llx, float lly, float urx, float ury)
 Add submit button on the form. More...
 
void AddListItem (System::String fieldName, System::String itemName)
 Adds new item to the list box. More...
 
void AddListItem (System::String fieldName, System::ArrayPtr< System::String > exportName)
 Add a new item with Export value to the existing list box field, only for AcroForm combo box field. More...
 
void DelListItem (System::String fieldName, System::String itemName)
 Delete item from the list field. More...
 
bool SetFieldScript (System::String fieldName, System::String script)
 Set JavaScript for a PushButton field. If old JavaScript existed, it will be replaced by the new one. More...
 
bool AddFieldScript (System::String fieldName, System::String script)
 Add JavaScript for a PushButton field. If old event exists, new event is added after it. More...
 
bool Single2Multiple (System::String fieldName)
 Change a single-lined text field to a multiple-lined one. More...
 
bool SetFieldAlignment (System::String fieldName, int32_t alignment)
 Set the alignment style of a text field. More...
 
bool SetFieldAlignmentV (System::String fieldName, int32_t alignment)
 Set the vertical alignment style of a text field. More...
 
 FormEditor (System::SharedPtr< Aspose::Pdf::Document > document)
 Initializes new FormEditor object on base of the document . More...
 
 FormEditor (System::SharedPtr< Aspose::Pdf::Document > document, System::String destFileName)
 Initializes new FormEditor object on base of the document . More...
 
 FormEditor (System::SharedPtr< Aspose::Pdf::Document > document, System::SharedPtr< System::IO::Stream > destStream)
 Initializes new FormEditor object on base of the document . More...
 
 FormEditor (System::SharedPtr< System::IO::Stream > inputStream, System::SharedPtr< System::Web::HttpResponse > response)
 Creates FormEditor which will save result into HttpResponse object. More...
 
 FormEditor (System::String inputFile, System::SharedPtr< System::Web::HttpResponse > response)
 Creates FormEditor which will save result into HttpResponse object. More...
 
virtual void Close ()
 Closes the facade. More...
 
- Public Member Functions inherited from Aspose::Pdf::Facades::SaveableFacade
virtual void Save (System::String destFile)
 Saves the PDF document to the specified file. More...
 
virtual void Save (System::SharedPtr< System::IO::Stream > destStream)
 Saves the PDF document to the specified stream. More...
 
- Public Member Functions inherited from Aspose::Pdf::Facades::Facade
System::SharedPtr< Aspose::Pdf::Documentget_Document () const
 Gets the document facade is working on. More...
 
virtual void BindPdf (System::String srcFile)
 Initializes the facade. More...
 
virtual void BindPdf (System::SharedPtr< System::IO::Stream > srcStream)
 Initializes the facade. More...
 
virtual void BindPdf (System::SharedPtr< Aspose::Pdf::Document > srcDoc)
 Initializes the facade. More...
 
void Dispose ()
 Disposes the facade. More...
 
- Public Member Functions inherited from Aspose::Pdf::Facades::IFacade
virtual void BindPdf (System::SharedPtr< Document > srcDoc)=0
 Binds PDF document for editing. More...
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared refernce counter. More...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API int GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API String ToString () ASPOSE_CONST
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (unsigned int argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 
template<>
bool Equals (double const &objA, double const &objB)
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
typedef System::Details::SharedMembersType shared_members_type
 structure to keep list of shared pointers contained in object. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Impleemnts C# typeof(System.Object) construct. More...
 
- Protected Member Functions inherited from Aspose::Pdf::Facades::SaveableFacade
 SaveableFacade ()
 The constructor. More...
 
 SaveableFacade (System::SharedPtr< Aspose::Pdf::Document > srcDoc)
 The constructor. More...
 
- Protected Member Functions inherited from Aspose::Pdf::Facades::Facade
 Facade ()
 The constructor. More...
 
 Facade (System::SharedPtr< Aspose::Pdf::Document > srcDoc)
 The constructor. More...
 
virtual void BindPdf (System::String srcFile, System::String password)
 Initializes the facade. More...
 
virtual void BindPdf (System::SharedPtr< System::IO::Stream > srcStream, System::String password)
 Initializes the facade. More...
 
virtual void AssertDocument () const
 Asserts if the facade is initialized. More...
 

Detailed Description

Class for editing forms (ading/deleting field etc)

Constructor & Destructor Documentation

◆ FormEditor() [1/8]

Aspose::Pdf::Facades::FormEditor::FormEditor ( System::SharedPtr< System::IO::Stream srcStream,
System::SharedPtr< System::IO::Stream destStream 
)

Constructor for FormEditor.

Parameters
srcStreamSource stream.
destStreamDestination stream.
FormEditor formEditor = new FormEditor(
new FileStream(new FileStream("InFile.pdf", FileMode.Open, FileAccess.Read),
new FileStream("OutFile.pdf", FileMode.Create, FileAccess.Write));

◆ FormEditor() [2/8]

Aspose::Pdf::Facades::FormEditor::FormEditor ( System::String  srcFileName,
System::String  destFileName 
)

Constructor for FormEditor

Parameters
srcFileNameName of source file.
destFileNameName of destination file.
FormEditor formEditor = new FormEditor("InFile.pdf", "OutFile.pdf");

◆ FormEditor() [3/8]

Aspose::Pdf::Facades::FormEditor::FormEditor ( )

Constructor for FormEditor.

FormEditor formEditor = new FormEditor();

◆ FormEditor() [4/8]

Aspose::Pdf::Facades::FormEditor::FormEditor ( System::SharedPtr< Aspose::Pdf::Document document)

Initializes new FormEditor object on base of the document .

Parameters
documentPdf document.

◆ FormEditor() [5/8]

Aspose::Pdf::Facades::FormEditor::FormEditor ( System::SharedPtr< Aspose::Pdf::Document document,
System::String  destFileName 
)

Initializes new FormEditor object on base of the document .

Parameters
documentPdf document.
destFileNamePath of the destination file.

◆ FormEditor() [6/8]

Aspose::Pdf::Facades::FormEditor::FormEditor ( System::SharedPtr< Aspose::Pdf::Document document,
System::SharedPtr< System::IO::Stream destStream 
)

Initializes new FormEditor object on base of the document .

Parameters
documentPdf document.
destStreamDestination stream.

◆ FormEditor() [7/8]

Aspose::Pdf::Facades::FormEditor::FormEditor ( System::SharedPtr< System::IO::Stream inputStream,
System::SharedPtr< System::Web::HttpResponse response 
)

Creates FormEditor which will save result into HttpResponse object.

Parameters
inputStreamSource stream.
responseHttpResponse object where result will be saved.

◆ FormEditor() [8/8]

Aspose::Pdf::Facades::FormEditor::FormEditor ( System::String  inputFile,
System::SharedPtr< System::Web::HttpResponse response 
)

Creates FormEditor which will save result into HttpResponse object.

Parameters
inputFileSource file name.
responseHttpResponse objects where result be saved.

Member Function Documentation

◆ AddField() [1/2]

bool Aspose::Pdf::Facades::FormEditor::AddField ( FieldType  fieldType,
System::String  fieldName,
int32_t  pageNum,
float  llx,
float  lly,
float  urx,
float  ury 
)

Add field of specified type to the form.

Parameters
fieldTypeType of the field which must be added.
fieldNameName of the field whic must be added.
pageNumPage number where new field must be placed.
llxAbscissa of the lower-left corner of the field.
llyOrdinate of the lower-left corner of the field.
urxAbscissa of the upper-right corner of the field.
uryOrdinate of the upper-right corner of the field.
Returns
true if field was successfully added.
FormEditor formEditor = new Aspose.Pdf.Facades.FormEditor("PdfForm.pdf", "FormEditor_AddField_Text.pdf");
formEditor.AddField(FieldType.Text, "AddedTextField", 1, 10, 30, 110, 46);
formEditor.Save();

◆ AddField() [2/2]

bool Aspose::Pdf::Facades::FormEditor::AddField ( FieldType  fieldType,
System::String  fieldName,
System::String  initValue,
int32_t  pageNum,
float  llx,
float  lly,
float  urx,
float  ury 
)

Add field of specified type to the form.

Parameters
fieldTypeType of the field which must be added.
fieldNameName of the field whic must be added.
initValueInitial value of the field.
pageNumPage number where new field must be placed.
llxAbscissa of the lower-left corner of the field.
llyOrdinate of the lower-left corner of the field.
urxAbscissa of the upper-right corner of the field.
uryOrdinate of the upper-right corner of the field.
Returns
true if field was successfully added.

///

FormEditor formEditor = new Aspose.Pdf.Facades.FormEditor("PdfForm.pdf", "FormEditor_AddField_Text.pdf");
formEditor.AddField(FieldType.Text, "AddedTextField", "Text Value", 1, 10, 30, 110, 46);
formEditor.Items = new string[] { "Item1", "Item2", Item3" };
formEditor.AddField(FieldType.Radio, "RadioButtonField", 1, 265, 695, 365, 720);
formEditor.Save();

◆ AddFieldScript()

bool Aspose::Pdf::Facades::FormEditor::AddFieldScript ( System::String  fieldName,
System::String  script 
)

Add JavaScript for a PushButton field. If old event exists, new event is added after it.

Parameters
fieldNameThe fully qualified field name.
scriptThe Java script to be added/placed into a push button field.
Returns
True in case script was added successfully.

◆ AddListItem() [1/2]

void Aspose::Pdf::Facades::FormEditor::AddListItem ( System::String  fieldName,
System::String  itemName 
)

Adds new item to the list box.

Parameters
fieldNameName of the field ot which new item will be added.
itemNameName if new item.
FormEditor formEditor = new FormEditor("PdfForm.pdf", PdfForm_out.pdf");
formEditor.AddListItem("listBoxField", "Item 4 (New Item)");

◆ AddListItem() [2/2]

void Aspose::Pdf::Facades::FormEditor::AddListItem ( System::String  fieldName,
System::ArrayPtr< System::String exportName 
)

Add a new item with Export value to the existing list box field, only for AcroForm combo box field.

Parameters
fieldNameName of field to which items will be added.
exportNameA string array denoting a new list item with Export Value, i.e. (Item Label, Export Value).
FormEditor fe = new FormEditor("PdfForm.pdf", "FormEditor_AddListItem2.pdf");
fe.AddListItem("listboxField", new string[] { "4", "Item4(Added)" });

◆ AddSubmitBtn()

void Aspose::Pdf::Facades::FormEditor::AddSubmitBtn ( System::String  fieldName,
int32_t  page,
System::String  label,
System::String  url,
float  llx,
float  lly,
float  urx,
float  ury 
)

Add submit button on the form.

Parameters
fieldNameName of new button.
pagePage where button will be placed.
labelButton caption.
urlURL of the submit button.
llxAbscissa of the lower-left corner.
llyOrdinate of the lower-left corner.
urxAbscissa of the upper-right corner.
uryOrdinate of the upper-right corner.
FormEditor formEditor = new FormEditor("PdfForm.pdf", "FormEditor_AddSubmitBtn.pdf");
formEditor.AddSubmitBtn("submit", 1, "Submit", "www.check.com", 10, 200, 70, 270);

◆ Close()

virtual void Aspose::Pdf::Facades::FormEditor::Close ( )
virtual

Closes the facade.

Reimplemented from Aspose::Pdf::Facades::Facade.

◆ CopyInnerField() [1/2]

void Aspose::Pdf::Facades::FormEditor::CopyInnerField ( System::String  fieldName,
System::String  newFieldName,
int32_t  pageNum 
)

Copies an existing field to the same position in specified page number. A new document will be produced, which contains everything the source document has except for the newly copied field.

Parameters
fieldNameThe old fully qualified field name.
newFieldNameThe new fully qualified field name. If null, it will be set as fieldName + "~".
pageNumThe number of page to hold the new field. If -1, new field will be copid to the same page as old one hosted.
FormEditor formEditor = new FormEditor("PdfForm.pdf", "PdfForm_out.pdf");
//Creates copy of text field on psecond page.
formEditor.CopyInnerField("textField", "textFieldCopy", 2);

◆ CopyInnerField() [2/2]

void Aspose::Pdf::Facades::FormEditor::CopyInnerField ( System::String  fieldName,
System::String  newFieldName,
int32_t  pageNum,
float  abscissa,
float  ordinate 
)

Copies an existing field to a new position specified by both page number and ordinates. A new document will be produced, which contains everything the source document has except for the newly copied field.

Parameters
fieldNameThe old fully qualified field name.
newFieldNameThe new fully qualified field name. If null, it will be set as fieldName + "~".
pageNumThe number of page to hold the new field. If -1, new field will be copid to the same page as old one hosted.
abscissaThe abscissa of the new field. If -1, the abscissa will be equaled to the original one.
ordinateThe ordinate of the new field. If -1, the ordinate will be equaled to the original one.
FormEditor formEditor = new FormEditor("PdfForm.pdf", "PdfForm_out.pdf");
//Creates copy of text field on psecond page.
formEditor.CopyInnerField("textField", "textFieldCopy", 2, 100, 200);

◆ CopyOuterField() [1/3]

void Aspose::Pdf::Facades::FormEditor::CopyOuterField ( System::String  srcFileName,
System::String  fieldName 
)

Copies an existing field from one PDF document to another document with original page number and ordinates. Notice: Only for AcroForm fields (excluding radio box).

Parameters
srcFileNameThe name of PDF document which containes the field to be copied.
fieldNameThe original fully qualified field name.
FormEditor formEditor = new FormEditor("PdfForm.pdf", "PdfForm_updated.pdf");
//copies text field from source.pdf to PdfForm.pdf
formEditor.CopyOuterField("source.pdf", "textField");
formEditor.Save();

◆ CopyOuterField() [2/3]

void Aspose::Pdf::Facades::FormEditor::CopyOuterField ( System::String  srcFileName,
System::String  fieldName,
int32_t  pageNum 
)

Copies an existing field from one PDF document to another document with specified page number and original ordinates. Notice: Only for AcroForm fields (excluding radio box).

Parameters
srcFileNameThe name of PDF document which containes the field to be copied.
fieldNameThe original fully qualified field name.
pageNumThe number of page to hold the new field. If -1, new field will be copid to the same page as old one hosted.
FormEditor formEditor = new FormEditor("PdfForm.pdf", "PdfForm_updated.pdf");
formEditor.CopyOuterField("source.pdf", "textField", 2);
formEditor.Save();

◆ CopyOuterField() [3/3]

void Aspose::Pdf::Facades::FormEditor::CopyOuterField ( System::String  srcFileName,
System::String  fieldName,
int32_t  pageNum,
float  abscissa,
float  ordinate 
)

Copies an existing field from one PDF document to another document with specified page number and ordinates. Notice: Only for AcroForm fields (excluding radio box).

Parameters
srcFileNameThe name of PDF document which containes the field to be copied.
fieldNameThe original fully qualified field name.
pageNumThe number of page to hold the new field. If -1, new field will be copid to the same page as old one hosted.
abscissaThe abscissa of the new field. If -1, the abscissa will be equaled to the original one.
ordinateThe ordinate of the new field. If -1, the ordinate will be equaled to the original one.
FormEditor formEditor = new FormEditor("PdfForm.pdf", "PdfForm_updated.pdf");
formEditor.CopyOuterField("source.pdf", "textField" , 2, 100, 200);

◆ DecorateField() [1/3]

void Aspose::Pdf::Facades::FormEditor::DecorateField ( System::String  fieldName)

Changes visual attributes of the specified field.

Parameters
fieldNameThe fully qualified field name.
FormEditor fe = new FormEditor("PdfWithAcroForm.pdf", "FormEditor_DecorateField_text.pdf");
fe.Facade = new FormFieldFacade();
fe.Facade.BackgroundColor = System.Drawing.Color.Red;
fe.Facade.TextColor = System.Drawing.Color.Blue;
fe.Facade.BorderColor = System.Drawing.Color.Green;
fe.Facade.Alignment = FormFieldFacade.AlignCenter;
fe.DecorateField("textField");

◆ DecorateField() [2/3]

void Aspose::Pdf::Facades::FormEditor::DecorateField ( FieldType  fieldType)

Changes visual attributes of all fields with the specified field type.

Parameters
fieldTypeType of fields which will be decorated.
FormEditor fe = new FormEditor("PdfForm.pdf", "FormEditor_DecorateField.pdf");
fe.Facade = new FormFieldFacade();
fe.Facade.BackgroundColor = System.Drawing.Color.Red;
fe.Facade.TextColor = System.Drawing.Color.Blue;
fe.Facade.BorderColor = System.Drawing.Color.Green;
fe.Facade.Alignment = FormFieldFacade.AlignRight;
//decorate all text fields.
fe.DecorateField(FieldType.Text);

◆ DecorateField() [3/3]

void Aspose::Pdf::Facades::FormEditor::DecorateField ( )

Changes visual attributes of all fields in the PDF document.

FormEditor fe = new FormEditor("PdfForm.pdf", "FormEditor_DecorateField.pdf");
fe.Facade = new FormFieldFacade();
fe.Facade.BackgroundColor = System.Drawing.Color.Red;
fe.Facade.TextColor = System.Drawing.Color.Blue;
fe.Facade.BorderColor = System.Drawing.Color.Green;
fe.Facade.Alignment = FormFieldFacade.AlignRight;
//decorate all fields.
fe.DecorateField();

◆ DelListItem()

void Aspose::Pdf::Facades::FormEditor::DelListItem ( System::String  fieldName,
System::String  itemName 
)

Delete item from the list field.

Parameters
fieldNameName of the field.
itemNameName of the item which must be deleted.
formEditor = new Aspose.Pdf.Facades.FormEditor("PdfForm.pdf", "FormEditor_DelListItem.pdf");
formEditor.DelListItem("listboxField", "item2");

◆ get_AttachmentName()

System::String Aspose::Pdf::Facades::FormEditor::get_AttachmentName ( )

Gets name of attachment when result of operation is stored into HttpResponse objects as attachment.

◆ get_ContentDisposition()

Aspose::Pdf::ContentDisposition Aspose::Pdf::Facades::FormEditor::get_ContentDisposition ( )

Gets how content will be stored when result of operation is stored into HttpResponse object. Possible value: inline / attachment. Default: inline.

◆ get_DestFileName()

System::String Aspose::Pdf::Facades::FormEditor::get_DestFileName ( )

Gets destination file name.

FormEditor editor = new FormEditor();
editor.DestFileName = "OutFile.pdf";

◆ get_DestStream()

System::SharedPtr<System::IO::Stream> Aspose::Pdf::Facades::FormEditor::get_DestStream ( )

Gets destination stream.

FormEditor editor = new FormEditor();
editor.DestStream = new FileStream("OutFile.pdf", FileMode.Create, FileAccess.Write);

◆ get_ExportItems()

System::ArrayPtr<System::ArrayPtr<System::String> > Aspose::Pdf::Facades::FormEditor::get_ExportItems ( )

Sets options for combo box with export values.

FormEditor formEditor = new FormEditor("PdfForm.pdf", "PdfForm_Updated.pdf"));
formEditor.ExportItems = new string[][]
{
new string[] { "1", "Firs" },
new string[] { "2", "Second" },
new string[] { "3", "Third" }
};
formEditor.AddField(FieldType.ListBox, "AddedListBoxField", "Second", 1, 10, 30, 110, 130);
formEditor.Save();

◆ get_Facade()

System::SharedPtr<FormFieldFacade> Aspose::Pdf::Facades::FormEditor::get_Facade ( )

Sets visual attributes of the field.

FormEditor fe = new FormEditor("PdfForm.pdf", "PdfForm_DecorateField_text.pdf");
fe.Facade = new FormFieldFacade();
fe.Facade.BackgroundColor = System.Drawing.Color.Red;
fe.Facade.TextColor = System.Drawing.Color.Blue;
fe.Facade.BorderColor = System.Drawing.Color.Green;
fe.Facade.Alignment = FormFieldFacade.AlignCenter;
fe.DecorateField("textField");
fe.Save();

◆ get_Items()

System::ArrayPtr<System::String> Aspose::Pdf::Facades::FormEditor::get_Items ( )

Sets items which will be added t onewly created list box or combo box.

formEditor = new Aspose.Pdf.Facades.FormEditor("input.pdf", "output.pdf");
formEditor.Items = new string[] { "AAA", "BBB", "CCC" };
formEditor.AddField(FieldType.ListBox, "AddedListBoxField", "BBB", 1, 10, 30, 110, 130);
formEditor.Save();

◆ get_RadioButtonItemSize()

double Aspose::Pdf::Facades::FormEditor::get_RadioButtonItemSize ( )

Gets size of radio button item size (when new radio button field is added).

formEditor = new Aspose.Pdf.Facades.FormEditor("PdfForm.pdf", "FormEditor_AddField_RadioButton.pdf");
formEditor.RadioGap = 4;
formEditor.RadioHoriz = false;
formEditor.RadioButtonItemSize = 20;
formEditor.Items = new string[] { "First", "Second", "Third" };
formEditor.AddField(FieldType.Radio, "AddedRadioButtonField", "Second", 1, 10, 30, 110, 130);
formEditor.Save();

◆ get_RadioGap()

float Aspose::Pdf::Facades::FormEditor::get_RadioGap ( )

The member to record the gap between two neighboring radio buttons in pixels,default is 50.

formEditor = new Aspose.Pdf.Facades.FormEditor("PdfForm.pdf", "FormEditor_AddField_RadioButton.pdf");
formEditor.RadioGap = 4;
formEditor.RadioHoriz = false;
formEditor.Items = new string[] { "First", "Second", "Third" };
formEditor.AddField(FieldType.Radio, "AddedRadioButtonField", "Second", 1, 10, 30, 110, 130);
formEditor.Save();

◆ get_RadioHoriz()

bool Aspose::Pdf::Facades::FormEditor::get_RadioHoriz ( )

The flag to indicate whether the radios are arranged horizontally or vertically, default value is true.

formEditor = new Aspose.Pdf.Facades.FormEditor("PdfForm.pdf", "FormEditor_AddField_RadioButton.pdf");
formEditor.RadioGap = 4;
formEditor.RadioHoriz = false;
formEditor.Items = new string[] { "First", "Second", "Third" };
formEditor.AddField(FieldType.Radio, "AddedRadioButtonField", "Second", 1, 10, 30, 110, 130);
formEditor.Save();

◆ get_Response()

System::SharedPtr<System::Web::HttpResponse> Aspose::Pdf::Facades::FormEditor::get_Response ( )

Gets Response object where result of operation will be stored.

◆ get_SaveOptions()

System::SharedPtr<Aspose::Pdf::SaveOptions> Aspose::Pdf::Facades::FormEditor::get_SaveOptions ( )

Gets save options when result is stored as HttpResponse. Default value: PdfSaveOptions.

◆ get_SrcFileName()

System::String Aspose::Pdf::Facades::FormEditor::get_SrcFileName ( )

Gets name of source file.

FormEditor editor = new FormEditor();
editor.SrcFileName = "InputFile.pdf";

◆ get_SrcStream()

System::SharedPtr<System::IO::Stream> Aspose::Pdf::Facades::FormEditor::get_SrcStream ( )

Gets source stream.

FormEditor editor = new FormEditor();
editor.SrcStream = new FileStream("InFile.pdf", FileMode.Open, FileAccess.Read);

◆ get_SubmitFlag()

SubmitFormFlag Aspose::Pdf::Facades::FormEditor::get_SubmitFlag ( )

Set the submit button's submission flags

◆ GetFieldAppearance()

Aspose::Pdf::Annotations::AnnotationFlags Aspose::Pdf::Facades::FormEditor::GetFieldAppearance ( System::String  fieldName)

Get field flags.

Parameters
fieldNameName of the field.
Returns
Set of field flags

◆ MoveField()

bool Aspose::Pdf::Facades::FormEditor::MoveField ( System::String  fieldName,
float  llx,
float  lly,
float  urx,
float  ury 
)

Set new position of field.

Parameters
fieldNameName of field which must be moved.
llxAbscissa of the lower-left corner of the field.
llyOrdinate of the lower-left coerner of the field.
urxAbscissa of the upper-right corner of the field.
uryOrdinate of the upper-right corner of the field.
Returns
true if field position was changed successfully.
FormEditor formEditor = new FormEditor("PdfForm.pdf", "FormEditor_MoveField.pdf");
formEditor.MoveField("textField", 20.5f, 20.3f, 120.6f, 40.8f);

◆ RemoveField()

void Aspose::Pdf::Facades::FormEditor::RemoveField ( System::String  fieldName)

Remove field from the form.

Parameters
fieldNameName of the field which must be removed.
FormEditr formEditor = new FormEditor("PdfForm.pdf", "FormEditor_RemoveField.pdf");
formEditor.RemoveField("listboxField");
formEditor.RemoveField("textField");

◆ RemoveFieldAction()

void Aspose::Pdf::Facades::FormEditor::RemoveFieldAction ( System::String  fieldName)

Remove submit action of the field.

Parameters
fieldNameName of the field.
FormEditor formEditor = new FormEditor("PdfForm.pdf", "FormEditor_RemoveFieldAction.pdf");
formEditor.RemoveFieldAction("btnSubmit");

◆ RenameField()

void Aspose::Pdf::Facades::FormEditor::RenameField ( System::String  fieldName,
System::String  newFieldName 
)

Change name of the field.

Parameters
fieldNameOld name of the field.
newFieldNameNew name of the field.
FormEditor formEditor = new FormEditor("PdfForm.pdf", "PdfForm_updated.pdf");
formEditor.RenameField("textField", "textField_Renamed");

◆ ResetFacade()

void Aspose::Pdf::Facades::FormEditor::ResetFacade ( )

Reset all visual attribtues to empty value.

◆ ResetInnerFacade()

void Aspose::Pdf::Facades::FormEditor::ResetInnerFacade ( )

Reset all visual attribtues of inner facade to empty value.

◆ Save()

void Aspose::Pdf::Facades::FormEditor::Save ( )

Saves changes into destination file.

FormEditor formEditor = new FormEditor("InFile.pdf", "OutFile.pdf"); //make some changes... formEditor.Save();

◆ set_AttachmentName()

void Aspose::Pdf::Facades::FormEditor::set_AttachmentName ( System::String  value)

Sets name of attachment when result of operation is stored into HttpResponse objects as attachment.

◆ set_ContentDisposition()

void Aspose::Pdf::Facades::FormEditor::set_ContentDisposition ( Aspose::Pdf::ContentDisposition  value)

Sets how content will be stored when result of operation is stored into HttpResponse object. Possible value: inline / attachment. Default: inline.

◆ set_ConvertTo()

void Aspose::Pdf::Facades::FormEditor::set_ConvertTo ( PdfFormat  value)

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()

void Aspose::Pdf::Facades::FormEditor::set_DestFileName ( System::String  value)

Sets destination file name.

FormEditor editor = new FormEditor();
editor.DestFileName = "OutFile.pdf";

◆ set_DestStream()

void Aspose::Pdf::Facades::FormEditor::set_DestStream ( System::SharedPtr< System::IO::Stream value)

Sets destination stream.

FormEditor editor = new FormEditor();
editor.DestStream = new FileStream("OutFile.pdf", FileMode.Create, FileAccess.Write);

◆ set_ExportItems()

void Aspose::Pdf::Facades::FormEditor::set_ExportItems ( System::ArrayPtr< System::ArrayPtr< System::String >>  value)

Sets options for combo box with export values.

FormEditor formEditor = new FormEditor("PdfForm.pdf", "PdfForm_Updated.pdf"));
formEditor.ExportItems = new string[][]
{
new string[] { "1", "Firs" },
new string[] { "2", "Second" },
new string[] { "3", "Third" }
};
formEditor.AddField(FieldType.ListBox, "AddedListBoxField", "Second", 1, 10, 30, 110, 130);
formEditor.Save();

◆ set_Facade()

void Aspose::Pdf::Facades::FormEditor::set_Facade ( System::SharedPtr< FormFieldFacade value)

Sets visual attributes of the field.

FormEditor fe = new FormEditor("PdfForm.pdf", "PdfForm_DecorateField_text.pdf");
fe.Facade = new FormFieldFacade();
fe.Facade.BackgroundColor = System.Drawing.Color.Red;
fe.Facade.TextColor = System.Drawing.Color.Blue;
fe.Facade.BorderColor = System.Drawing.Color.Green;
fe.Facade.Alignment = FormFieldFacade.AlignCenter;
fe.DecorateField("textField");
fe.Save();

◆ set_Items()

void Aspose::Pdf::Facades::FormEditor::set_Items ( System::ArrayPtr< System::String value)

Sets items which will be added t onewly created list box or combo box.

formEditor = new Aspose.Pdf.Facades.FormEditor("input.pdf", "output.pdf");
formEditor.Items = new string[] { "AAA", "BBB", "CCC" };
formEditor.AddField(FieldType.ListBox, "AddedListBoxField", "BBB", 1, 10, 30, 110, 130);
formEditor.Save();

◆ set_RadioButtonItemSize()

void Aspose::Pdf::Facades::FormEditor::set_RadioButtonItemSize ( double  value)

Sets size of radio button item size (when new radio button field is added).

formEditor = new Aspose.Pdf.Facades.FormEditor("PdfForm.pdf", "FormEditor_AddField_RadioButton.pdf");
formEditor.RadioGap = 4;
formEditor.RadioHoriz = false;
formEditor.RadioButtonItemSize = 20;
formEditor.Items = new string[] { "First", "Second", "Third" };
formEditor.AddField(FieldType.Radio, "AddedRadioButtonField", "Second", 1, 10, 30, 110, 130);
formEditor.Save();

◆ set_RadioGap()

void Aspose::Pdf::Facades::FormEditor::set_RadioGap ( float  value)

The member to record the gap between two neighboring radio buttons in pixels,default is 50.

formEditor = new Aspose.Pdf.Facades.FormEditor("PdfForm.pdf", "FormEditor_AddField_RadioButton.pdf");
formEditor.RadioGap = 4;
formEditor.RadioHoriz = false;
formEditor.Items = new string[] { "First", "Second", "Third" };
formEditor.AddField(FieldType.Radio, "AddedRadioButtonField", "Second", 1, 10, 30, 110, 130);
formEditor.Save();

◆ set_RadioHoriz()

void Aspose::Pdf::Facades::FormEditor::set_RadioHoriz ( bool  value)

The flag to indicate whether the radios are arranged horizontally or vertically, default value is true.

formEditor = new Aspose.Pdf.Facades.FormEditor("PdfForm.pdf", "FormEditor_AddField_RadioButton.pdf");
formEditor.RadioGap = 4;
formEditor.RadioHoriz = false;
formEditor.Items = new string[] { "First", "Second", "Third" };
formEditor.AddField(FieldType.Radio, "AddedRadioButtonField", "Second", 1, 10, 30, 110, 130);
formEditor.Save();

◆ set_Response()

void Aspose::Pdf::Facades::FormEditor::set_Response ( System::SharedPtr< System::Web::HttpResponse value)

Sets Response object where result of operation will be stored.

◆ set_SaveOptions()

void Aspose::Pdf::Facades::FormEditor::set_SaveOptions ( System::SharedPtr< Aspose::Pdf::SaveOptions value)

Sets save options when result is stored as HttpResponse. Default value: PdfSaveOptions.

◆ set_SrcFileName()

void Aspose::Pdf::Facades::FormEditor::set_SrcFileName ( System::String  value)

Sets name of source file.

FormEditor editor = new FormEditor();
editor.SrcFileName = "InputFile.pdf";

◆ set_SrcStream()

void Aspose::Pdf::Facades::FormEditor::set_SrcStream ( System::SharedPtr< System::IO::Stream value)

Sets source stream.

FormEditor editor = new FormEditor();
editor.SrcStream = new FileStream("InFile.pdf", FileMode.Open, FileAccess.Read);

◆ set_SubmitFlag()

void Aspose::Pdf::Facades::FormEditor::set_SubmitFlag ( SubmitFormFlag  value)

Set the submit button's submission flags

◆ SetFieldAlignment()

bool Aspose::Pdf::Facades::FormEditor::SetFieldAlignment ( System::String  fieldName,
int32_t  alignment 
)

Set the alignment style of a text field.

Parameters
fieldNameThe qualified field name.
alignmentThe alignment style definition, including FormFieldFacade.AlignLeft, FormFieldFacade.AlignCenter and FormFieldFacade.AlignRight.
Returns
true if true if field was found and alignment was set.
FormEditor fe = new FormEditor("PdfStaticForm.pdf", "VerticalAlign.pdf");
fe.SetFieldAlignment("form1[0].TextField[0]", FormFieldFacade.AlignLeft);

◆ SetFieldAlignmentV()

bool Aspose::Pdf::Facades::FormEditor::SetFieldAlignmentV ( System::String  fieldName,
int32_t  alignment 
)

Set the vertical alignment style of a text field.

Parameters
fieldNameThe qualified field name.
alignmentThe alignment style definition, including FormFieldFacade.AlignTop, FormFieldFacade.AlignMiddle and FormFieldFacade.AlignRight.
Returns
true if field was found and alignment was successfully filled.
FormEditor fe = new FormEditor("PdfStaticForm.pdf", "VerticalAlign.pdf");
fe.SetFieldAlignmentV("form1[0].TextField[0]", FormFieldFacade.AlignBottom);

◆ SetFieldAppearance()

bool Aspose::Pdf::Facades::FormEditor::SetFieldAppearance ( System::String  fieldName,
Aspose::Pdf::Annotations::AnnotationFlags  flags 
)

Set field flags

Parameters
fieldNameName of field whose flags should be updated.
flagsFlag of the field.
Returns
true if flags were updated successfully.
FormEditor formEditor = new FormEditor("PdfForm1.pdf", "FormEditor_SetFieldAppearance.pdf");
formEditor.SetFieldAppearance("Name", AnnotationFlags.Hidden);
formEditor.SetFieldAppearance("Phone", AnnotationFlags.NoView | AnnotationFlags.Print);

◆ SetFieldAttribute()

bool Aspose::Pdf::Facades::FormEditor::SetFieldAttribute ( System::String  fieldName,
PropertyFlag  flag 
)

Set attributes of field.

Parameters
fieldNameName of field which attributes should be set.
flagFlag (NoExport/ReadOnly/Required)
Returns
true if attribute was set successfully.
FormEditor formEditor = new FormEditor("PdfForm.pdf", "PdfForm_SetFieldAttribute.pdf");
formEditor.SetFieldAttribute("listboxField", PropertyFlag.ReadOnly);
formEditor.SetFieldAttribute("textField", PropertyFlag.NoExport);

◆ SetFieldCombNumber()

bool Aspose::Pdf::Facades::FormEditor::SetFieldCombNumber ( System::String  fieldName,
int32_t  combNumber 
)

Sets number of combs for a regular single-line text field (the field is automatically divided into as many equally spaced positions, or combs, as the value of combNumber parameter).

Parameters
fieldNameThe qualified field name.
combNumberThe number of combs to divide the field into.
Returns
If success, return true;else false.
FormEditor formEditor = new FormEditor("PdfWithAcroForm.pdf", "FormEditor_SetFieldComb.pdf"));
formEditor.SetFieldCombNumber("textCombField", 5);

◆ SetFieldLimit()

bool Aspose::Pdf::Facades::FormEditor::SetFieldLimit ( System::String  fieldName,
int32_t  fieldLimit 
)

Sets maximum character count of the text field.

Parameters
fieldNameName of the text field.
fieldLimitNew value of limit for the field.
Returns
true if field limit was successfully set.
FormEditor formEditor = new FormEditor("PdfForm.pdf", "FormEditor_SetFieldLimit.pdf");
formEditor.SetFieldLimit("textField", 15);

◆ SetFieldScript()

bool Aspose::Pdf::Facades::FormEditor::SetFieldScript ( System::String  fieldName,
System::String  script 
)

Set JavaScript for a PushButton field. If old JavaScript existed, it will be replaced by the new one.

Parameters
fieldNameThe fully qualified field name.
scriptThe Java script to be added/placed into a push button field.
Returns
true if field scrip was successfully set.

◆ SetSubmitFlag()

bool Aspose::Pdf::Facades::FormEditor::SetSubmitFlag ( System::String  fieldName,
SubmitFormFlag  submitFormFlag 
)

Set submit flag of submit button.

Parameters
fieldNameName of submit button.
submitFormFlagSubmit flag.
Returns
true if field was found and submit flag was successfully set.
FormEditor formEditor = new FormEditor("PdfForm.pdf", "FormEditor_SetSubmitFlag.pdf");
formEditor.SetSubmitFlag("btnSubmit", SubmitFormFlag.Fdf);

◆ SetSubmitUrl()

bool Aspose::Pdf::Facades::FormEditor::SetSubmitUrl ( System::String  fieldName,
System::String  url 
)

Sets URL of the button.

Parameters
fieldNameSubmit button name.
urlFully qualified URL.
Returns
true if URL for button was successfully set.
FormEditor formEditor = new FormEditor("PdfForm.pdf", "FormEditor_SetSubmitUrl.pdf");
formEditor.SetSubmitUrl("btnSubmit", "www.mysite.com");

◆ Single2Multiple()

bool Aspose::Pdf::Facades::FormEditor::Single2Multiple ( System::String  fieldName)

Change a single-lined text field to a multiple-lined one.

Parameters
fieldNameThe qualified field name.
Returns
If success, return true;else false.
FormEditor formEditor = new FormEditor("PdfForm.pdf", "PdfForm_updated.pdf");
formEditor.Single2Multiple("textField");