iText 7 7.1.9 API
iText.Forms.PdfPageFormCopier Class Reference

A sample implementation of the {#link IPdfPageExtraCopier} interface which copies only AcroForm fields to a new page. More...

Inheritance diagram for iText.Forms.PdfPageFormCopier:
iText.Kernel.Pdf.IPdfPageExtraCopier

Public Member Functions

virtual void  Copy (PdfPage fromPage, PdfPage toPage)
  Copies a page. More...
 

Detailed Description

A sample implementation of the {#link IPdfPageExtraCopier} interface which copies only AcroForm fields to a new page.

A sample implementation of the {#link IPdfPageExtraCopier} interface which copies only AcroForm fields to a new page.

NOTE: While it's absolutely not necessary to use the same PdfPageFormCopier instance for copying operations, it is still worth to know that PdfPageFormCopier uses some caching logic which can potentially improve performance in case of the reusing of the same instance.

Member Function Documentation

◆ Copy()

virtual void iText.Forms.PdfPageFormCopier.Copy ( PdfPage  fromPage,
PdfPage  toPage 
)
inlinevirtual

Copies a page.

Copies a page. The new page must already be created before calling this, either in a new PdfDocument or in the same PdfDocument as the old page.

Parameters
fromPage the source page
toPage the target page in a target document

Implements iText.Kernel.Pdf.IPdfPageExtraCopier.