DocumentPageImporter

DocumentPageImporter

Overview

DocumentPageImporter is a class in Aspose.PDF FOSS for Java.

Imports pages from one {@link Document} into another by performing a full deep copy of the source page’s PDF object subgraph into fresh indirect objects belonging to the target document.

This class provides 2 methods for working with DocumentPageImporter objects in Java programs. Available methods include: DocumentPageImporter, importPage. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.

Methods

SignatureDescription
DocumentPageImporter(target: Document, source: Document)@param target target document, receives cloned pages
@param source source document, owns the original pages
@throws IllegalArgumentException if either argument is null
@throws IllegalStateException
importPage(sourcePage: Page)PageDeep-copies {@code sourcePage} into a new {@link Page} backed by a fresh
page dictionary registered in the target document.

See Also

 English