FormEditorCopyOuterField Method (String, String, Int32)
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).

Namespace: Aspose.Pdf.Facades
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 19.11
Syntax
public void CopyOuterField(
	string srcFileName,
	string fieldName,
	int pageNum
)

Parameters

srcFileName
Type: SystemString
The name of PDF document which containes the field to be copied.
fieldName
Type: SystemString
The original fully qualified field name.
pageNum
Type: SystemInt32
The number of page to hold the new field. If -1, new field will be copid to the same page as old one hosted.
Examples
C#
FormEditor formEditor = new FormEditor("PdfForm.pdf", "PdfForm_updated.pdf");
formEditor.CopyOuterField("source.pdf", "textField", 2);
formEditor.Save();
See Also