|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.util.PDFCloneUtility
public class PDFCloneUtility
Utility class used to clone PDF objects. It keeps track of objects it has already cloned.
Constructor Summary | |
---|---|
PDFCloneUtility(PDDocument dest)
Creates a new instance for the given target document. |
Method Summary | |
---|---|
COSBase |
cloneForNewDocument(java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PDFCloneUtility(PDDocument dest)
dest
- the destination PDF document that will receive the clonesMethod Detail |
---|
public PDDocument getDestination()
public COSBase cloneForNewDocument(java.lang.Object base) throws java.io.IOException
base
- the initial object as the root of the deep-clone operation
java.io.IOException
- if an I/O error occurspublic void cloneMerge(COSObjectable base, COSObjectable target) throws java.io.IOException
base
- the base object to be clonedtarget
- the merge target
java.io.IOException
- if an I/O error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |