Package com.itextpdf.text.pdf
Class PdfNameTree
java.lang.Object
com.itextpdf.text.pdf.PdfNameTree
Creates a name tree.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static PdfString
iterateItems
(PdfDictionary dic, HashMap<String, PdfObject> items, PdfString leftOverString) readTree
(PdfDictionary dic) static PdfDictionary
Writes a name tree to a PdfWriter.
-
Field Details
-
leafSize
private static final int leafSize- See Also:
-
-
Constructor Details
-
PdfNameTree
public PdfNameTree()
-
-
Method Details
-
writeTree
public static PdfDictionary writeTree(HashMap<String, ? extends PdfObject> items, PdfWriter writer) throws IOExceptionWrites a name tree to a PdfWriter.- Parameters:
items
- the item of the name tree. The key is aString
and the value is aPdfObject
. 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, for example
- Throws:
IOException
- on error
-
iterateItems
-
readTree
-