java.lang.Object
org.jfree.pdf.internal.PDFObject
org.jfree.pdf.dictionary.DictionaryObject
- Direct Known Subclasses:
GraphicsStateDictionary
A PDF object that is represented by a dictionary. This is used to
represent the
Catalog
and the Outlines
(the latter
being a placeholder implementation only since we don't presently generate
outlines).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jfree.pdf.internal.PDFObject
getGeneration, getNumber, getReference, toPDFBytes
-
Field Details
-
dictionary
-
-
Constructor Details
-
DictionaryObject
Creates a new instance.- Parameters:
number
- the object number.type
- the object type (for example, "/Catalog").
-
-
Method Details
-
put
Puts an item in the dictionary.- Parameters:
name
- the name (without the leading "/",null
not permitted).value
- the value (null
not permitted).
-
remove
Removes an item from the dictionary.- Parameters:
name
- the name (without the leading "/").- Returns:
- The value that was previously stored with the given name.
-
getObjectBytes
public byte[] getObjectBytes()Returns the bytes that go between the 'obj' and 'endobj' in the PDF output for this object.- Specified by:
getObjectBytes
in classPDFObject
- Returns:
- A byte array.
-