public class PDFCloneUtility extends Object
Constructor and Description |
---|
PDFCloneUtility(PDDocument dest)
Creates a new instance for the given target document.
|
Modifier and Type | Method and Description |
---|---|
COSBase |
cloneForNewDocument(Object base)
Deep-clones the given object for inclusion into a different PDF document identified by
the destination parameter.
|
void |
cloneMerge(COSObjectable base,
COSObjectable target)
Merges two objects of the same type by deep-cloning its members.
|
PDDocument |
getDestination()
Returns the destination PDF document this cloner instance is set up for.
|
public PDFCloneUtility(PDDocument dest)
dest
- the destination PDF document that will receive the clonespublic PDDocument getDestination()
public COSBase cloneForNewDocument(Object base) throws IOException
base
- the initial object as the root of the deep-clone operationIOException
- if an I/O error occurspublic void cloneMerge(COSObjectable base, COSObjectable target) throws IOException
base
- the base object to be clonedtarget
- the merge targetIOException
- if an I/O error occursCopyright © 2002–2016 The Apache Software Foundation. All rights reserved.