FormEditor.CopyOuterField

CopyOuterField(string, string)

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

public void CopyOuterField(string srcFileName, string fieldName)
ParameterTypeDescription
srcFileNameStringThe name of PDF document which containes the field to be copied.
fieldNameStringThe original fully qualified field name.

Examples

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

See Also


CopyOuterField(string, string, int)

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

public void CopyOuterField(string srcFileName, string fieldName, int pageNum)
ParameterTypeDescription
srcFileNameStringThe name of PDF document which containes the field to be copied.
fieldNameStringThe original fully qualified field name.
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_updated.pdf");
formEditor.CopyOuterField("source.pdf", "textField", 2);
formEditor.Save();

See Also


CopyOuterField(string, string, int, float, float)

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

public void CopyOuterField(string srcFileName, string fieldName, int pageNum, float abscissa, 
    float ordinate)
ParameterTypeDescription
srcFileNameStringThe name of PDF document which containes the field to be copied.
fieldNameStringThe original fully qualified field name.
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_updated.pdf");
formEditor.CopyOuterField("source.pdf", "textField" , 2, 100, 200);

See Also