FormEditor.CopyInnerField

CopyInnerField(string, string, int)

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.

public void CopyInnerField(string fieldName, string newFieldName, int pageNum)
ParameterTypeDescription
fieldNameStringThe old fully qualified field name.
newFieldNameStringThe new fully qualified field name. If null, it will be set as fieldName + “~”.
pageNumInt32The number of page to hold the new field. If -1, new field will be copid to the same page as old one hosted.

Examples

FormEditor formEditor = new FormEditor("PdfForm.pdf", "PdfForm_out.pdf");
//Creates copy of text field on psecond page.
formEditor.CopyInnerField("textField", "textFieldCopy", 2);

See Also


CopyInnerField(string, string, int, float, float)

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.

public void CopyInnerField(string fieldName, string newFieldName, int pageNum, float abscissa, 
    float ordinate)
ParameterTypeDescription
fieldNameStringThe old fully qualified field name.
newFieldNameStringThe new fully qualified field name. If null, it will be set as fieldName + “~”.
pageNumInt32The number of page to hold the new field. If -1, new field will be copid to the same page as old one hosted.
abscissaSingleThe abscissa of the new field. If -1, the abscissa will be equaled to the original one.
ordinateSingleThe ordinate of the new field. If -1, the ordinate will be equaled to the original one.

Examples

FormEditor formEditor = new FormEditor("PdfForm.pdf", "PdfForm_out.pdf");
//Creates copy of text field on psecond page.
formEditor.CopyInnerField("textField", "textFieldCopy", 2, 100, 200);

See Also