Package org.apache.pdfbox.multipdf
Class Splitter.KCloner
java.lang.Object
org.apache.pdfbox.multipdf.Splitter.KCloner
- Enclosing class:
Splitter
Class to help clone the /K tree. It clones structure elements and fills the structure
elements map. Pages are replaced with the help of the page map. Elements with pages that
don't belong to the destination are removed from the clone.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate COSBasecreateArrayClone(COSBase src, COSBase dstParent, COSDictionary currentPageDict) (package private) COSBasecreateClone(COSBase src, COSBase dstParent, COSDictionary currentPageDict) Creates a clone of the source.private COSBasecreateDictionaryClone(COSBase src, COSBase dstParent, COSDictionary currentPageDict)
-
Field Details
-
dstPageTree
PDPageTree dstPageTree
-
-
Constructor Details
-
KCloner
-
-
Method Details
-
createClone
Creates a clone of the source.- Parameters:
src- source dictionary or array.dstParent- for the /P entry; parameter needed because arrays don't keep a parent.currentPageDict- used to remember whether we have a page parent somewhere or not. Starts with null.- Returns:
- a clone, or null if source is null or if there is no clone because it belongs to a different page or to no page.
-
createArrayClone
-
createDictionaryClone
private COSBase createDictionaryClone(COSBase src, COSBase dstParent, COSDictionary currentPageDict)
-