Class PdfPageFormCopier

java.lang.Object
com.itextpdf.forms.PdfPageFormCopier
All Implemented Interfaces:
IPdfPageExtraCopier

public class PdfPageFormCopier extends Object implements IPdfPageExtraCopier
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.

  • Constructor Details

    • PdfPageFormCopier

      public PdfPageFormCopier()
  • Method Details

    • copy

      public void copy (PdfPage fromPage, PdfPage toPage)
      Description copied from interface: IPdfPageExtraCopier
      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.
      Specified by:
      copy in interface IPdfPageExtraCopier
      Parameters:
      fromPage - the source page
      toPage - the target page in a target document