Class PdfNameTree
- java.lang.Object
-
- com.gitlab.pdftk_java.com.lowagie.text.pdf.PdfNameTree
-
public class PdfNameTree extends java.lang.ObjectCreates a name tree.
-
-
Field Summary
Fields Modifier and Type Field Description private static intleafSizeprivate static StringComparestringCompare
-
Constructor Summary
Constructors Constructor Description PdfNameTree()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static voiditerateItems(PdfDictionary dic, java.util.HashMap items)static java.util.HashMapreadTree(PdfDictionary dic)static PdfDictionarywriteTree(java.util.HashMap items, PdfWriter writer)Creates a name tree.
-
-
-
Field Detail
-
leafSize
private static final int leafSize
- See Also:
- Constant Field Values
-
stringCompare
private static final StringCompare stringCompare
-
-
Method Detail
-
writeTree
public static PdfDictionary writeTree(java.util.HashMap items, PdfWriter writer) throws java.io.IOException
Creates a name tree.- Parameters:
items- the item of the name tree. The key is aStringand the value is aPdfIndirectReference. Note that although the keys are strings only the lower byte is used and no check is made for chars with the same lower byte and different upper byte. This will generate a wrong tree name.writer- the writer- Returns:
- the dictionary with the name tree. This dictionary is the one generally pointed to by the key /Dests
- Throws:
java.io.IOException- on error
-
iterateItems
private static void iterateItems(PdfDictionary dic, java.util.HashMap items)
-
readTree
public static java.util.HashMap readTree(PdfDictionary dic)
-
-