| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private final Map | |
| private final PDDocument | |
| private static final Log |
| Access | Constructor and Description |
|---|---|
| protected | PDFCloneUtility(PDDocument
the destination PDF document that will receive the clones dest)Creates a new instance for the given target document. |
| Modifier and Type | Method and Description |
|---|---|
| private COSArray | |
| private COSBase | |
| private COSDictionary | |
| private COSStream | |
| public <TCOSBase extends COSBase> TCOSBase | Returns: the cloned instance of the base objectthe initial object as the root of the deep-clone operation base)Deep-clones the given object for inclusion into a different PDF document identified by the destination parameter. |
| pack-priv void | cloneMerge(final COSObjectable
the base object to be cloned base, COSObjectable the merge target target)Merges two objects of the same type by deep-cloning its members. |
| private void | |
| pack-priv PDDocument | Returns: the destination PDF documentReturns the destination PDF document this cloner instance is set up for. |
| private boolean | hasSelfReference(COSBase
COSArray or COSDictionary parent, COSBase an element value)Check whether an element (of an array or a dictionary) points to its parent. |
| clonedValues | back to summary |
|---|---|
| private final Set<COSBase> clonedValues | |
| clonedVersion | back to summary |
|---|---|
| private final Map<COSBase, COSBase> clonedVersion | |
| destination | back to summary |
|---|---|
| private final PDDocument destination | |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| PDFCloneUtility | back to summary |
|---|---|
| protected PDFCloneUtility(PDDocument dest) Creates a new instance for the given target document.
| |
| cloneCOSArray | back to summary |
|---|---|
| private COSArray cloneCOSArray(COSArray array) throws IOException | |
| cloneCOSBaseForNewDocument | back to summary |
|---|---|
| private COSBase cloneCOSBaseForNewDocument(COSBase base) throws IOException | |
| cloneCOSDictionary | back to summary |
|---|---|
| private COSDictionary cloneCOSDictionary(COSDictionary dictionary) throws IOException | |
| cloneCOSStream | back to summary |
|---|---|
| private COSStream cloneCOSStream(COSStream stream) throws IOException | |
| cloneForNewDocument | back to summary |
|---|---|
| public <TCOSBase extends COSBase> TCOSBase cloneForNewDocument(TCOSBase base) throws IOException Deep-clones the given object for inclusion into a different PDF document identified by the destination parameter. Expert use only, don’t use it if you don’t know exactly what you are doing.
| |
| cloneMerge | back to summary |
|---|---|
| pack-priv void cloneMerge(final COSObjectable base, COSObjectable target) throws IOException Merges two objects of the same type by deep-cloning its members.
| |
| cloneMergeCOSBase | back to summary |
|---|---|
| private void cloneMergeCOSBase(final COSBase source, final COSBase target) throws IOException | |
| getDestination | back to summary |
|---|---|
| pack-priv PDDocument getDestination() Returns the destination PDF document this cloner instance is set up for.
| |
| hasSelfReference | back to summary |
|---|---|
| private boolean hasSelfReference(COSBase parent, COSBase value) Check whether an element (of an array or a dictionary) points to its parent. | |