Uses of Class
com.pd4ml.pdf.cos.COSDictionary
-
-
Uses of COSDictionary in com.pd4ml.pdf.cos
Subclasses of COSDictionary in com.pd4ml.pdf.cos Modifier and Type Class Description classCOSStreamA PDF stream object: aCOSDictionary(the "stream dictionary") together with a run of raw bytes.Methods in com.pd4ml.pdf.cos that return COSDictionary Modifier and Type Method Description COSDictionaryCOSDocument. getCatalog()The document catalog, i.e.COSDictionaryCOSDictionary. getDictionary(java.lang.String key)COSDictionaryCOSDocument. getTrailer()Methods in com.pd4ml.pdf.cos with parameters of type COSDictionary Modifier and Type Method Description voidCOSDocument. setTrailer(COSDictionary trailer)TICOSVisitor. visitFromDictionary(COSDictionary dict)Constructors in com.pd4ml.pdf.cos with parameters of type COSDictionary Constructor Description COSDictionary(COSDictionary toCopy)COSStream(COSDictionary dictionary) -
Uses of COSDictionary in com.pd4ml.pdf.cos.filter
Methods in com.pd4ml.pdf.cos.filter with parameters of type COSDictionary Modifier and Type Method Description byte[]ASCII85DecodeFilter. decode(byte[] encoded, COSDictionary parameters, COSDictionary streamDict)byte[]ASCIIHexDecodeFilter. decode(byte[] encoded, COSDictionary parameters, COSDictionary streamDict)byte[]Filter. decode(byte[] encoded, COSDictionary parameters, COSDictionary streamDict)Decodesencodedusing this filter's algorithm.byte[]FlateDecodeFilter. decode(byte[] encoded, COSDictionary parameters, COSDictionary streamDict) -
Uses of COSDictionary in com.pd4ml.pdf.cos.security
Constructors in com.pd4ml.pdf.cos.security with parameters of type COSDictionary Constructor Description StandardSecurityHandler(COSDictionary encryptDict, byte[] firstIdBytes, java.lang.String password) -
Uses of COSDictionary in com.pd4ml.pdf.cos.util
Methods in com.pd4ml.pdf.cos.util that return COSDictionary Modifier and Type Method Description static COSDictionaryPageTree. findPage(COSDictionary catalog, int index)Returns the zero-basedindex-th page dictionary undercatalog's/Pagestree, ornullif the catalog has no (usable) page tree orindexis out of range.static COSDictionaryPageAttributes. getInheritedResources(COSDictionary page)Convenience for/Resourcesspecifically (dictionary-valued).Methods in com.pd4ml.pdf.cos.util with parameters of type COSDictionary Modifier and Type Method Description static intPageTree. countPages(COSDictionary catalog)Total number of leaf pages undercatalog's/Pagestree.static java.lang.StringOutlineTree. dump(COSDictionary catalog)Pre-order dump of every node's own/Title, 2-space-indented per level -- matches the legacyPdfDoc#dumpOutlinesformat exactly (asserted byte-for-byte by existing tests).static COSDictionaryPageTree. findPage(COSDictionary catalog, int index)Returns the zero-basedindex-th page dictionary undercatalog's/Pagestree, ornullif the catalog has no (usable) page tree orindexis out of range.static COSBasePageAttributes. getInherited(COSDictionary page, java.lang.String key)static COSArrayPageAttributes. getInheritedArray(COSDictionary page, java.lang.String key)Convenience for array-valued attributes (/MediaBox,/CropBox).static COSDictionaryPageAttributes. getInheritedResources(COSDictionary page)Convenience for/Resourcesspecifically (dictionary-valued).static COSBaseNumberTreeUtil. lookup(COSDictionary root, int key)Returns the value stored underkeyin the number tree rooted atroot, ornull.static intNumberTreeUtil. maxKey(COSDictionary root)The highest key stored anywhere in the number tree rooted atroot(searching every/Kidssubtree, ignoring/Limitssince those are advisory and this needs the true maximum regardless), or-1ifrootisnullor the tree has no entries at all.static voidOutlineTree. pruneForDeletedPage(COSDictionary catalog, COSObjectKey deletedPageKey)Removes every outline node whose own destination resolves todeletedPageKey-- either a plain array-valued/Dest(first element the page reference), a named/Dest(aCOSStringlooked up in the catalog's/Names/Destsname tree -- matching entries are also pruned from that tree, exactly as legacy'sPdfDoc#getPageDestinations/cleanDestKidsdo), or an/AGoTo action's/Din either of those two shapes (not present in legacy's own equivalent, added here since it's the same information reached a different way) -- splicing the node out of its sibling chain. -
Uses of COSDictionary in com.pd4ml.pdf.cos.writer
Methods in com.pd4ml.pdf.cos.writer with parameters of type COSDictionary Modifier and Type Method Description java.lang.VoidCOSWriter. visitFromDictionary(COSDictionary dict)voidCOSWriter. writeTrailerDictionary(COSDictionary trailer)Writes a bare dictionary body (no wrapping object header) -- used for the file trailer. -
Uses of COSDictionary in com.pd4ml.pdf.merge.internal
Methods in com.pd4ml.pdf.merge.internal with parameters of type COSDictionary Modifier and Type Method Description voidStructureTreeMerger. mergePage(COSDocument sourceDoc, COSDictionary sourceStructTreeRoot, COSDictionary sourcePageDict, COSDictionary clonedPageDict)Merges one page's structure contribution, if any.voidOutlineMerger. mergeSource(COSDocument sourceDoc, COSDictionary sourceCatalog)Call once per source, in the same orderPdfMergeritself processes sources. -
Uses of COSDictionary in com.pd4ml.pdf.xfdf.internal
Methods in com.pd4ml.pdf.xfdf.internal with parameters of type COSDictionary Modifier and Type Method Description static voidAnnotationMapper. applyToCOS(XfdfAnnotation x, COSDictionary target, COSDocument targetDoc)Populates (or, for an already-populatedtargetpassed in by the caller's "update if exists" handling -- seeXfdfImporter-- re-populates)targetfromx.voidStructureTreeUpdater. tagNewAnnotation(COSDictionary page, COSDictionary annotDict)TagsannotDict(already attached topage's/Annots) if it's the kind of annotation that should be, per this class's own documentation.static XfdfAnnotationAnnotationMapper. toXfdf(COSDictionary annot, int pageIndex)
-