public class PdfNameTree extends Object
Constructor and Description |
---|
PdfNameTree() |
Modifier and Type | Method and Description |
---|---|
static HashMap |
readTree(PdfDictionary dic) |
static PdfDictionary |
writeTree(HashMap items,
PdfWriter writer)
Writes a name tree to a PdfWriter.
|
public static PdfDictionary writeTree(HashMap items, PdfWriter writer) throws IOException
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 writerIOException
- on errorpublic static HashMap readTree(PdfDictionary dic)
Copyright © 2018. All rights reserved.