com.lowagie.text.pdf

Class PdfNameTree

public class PdfNameTree extends Object

Creates a name tree.

Author: Paulo Soares (psoares@consiste.pt)

Field Summary
static intleafSize
Method Summary
static voiditerateItems(PdfDictionary dic, HashMap items)
static HashMapreadTree(PdfDictionary dic)
static PdfDictionarywriteTree(HashMap items, PdfWriter writer)
Writes a name tree to a PdfWriter.

Field Detail

leafSize

private static final int leafSize

Method Detail

iterateItems

private static void iterateItems(PdfDictionary dic, HashMap items)

readTree

public static HashMap readTree(PdfDictionary dic)

writeTree

public static PdfDictionary writeTree(HashMap items, PdfWriter writer)
Writes a name tree to a PdfWriter.

Parameters: items the item of the name tree. The key is a String and the value is a PdfObject. 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