public class PdfCollectionItem extends PdfObjectWrapper<PdfDictionary>
Constructor and Description |
---|
PdfCollectionItem(PdfCollectionSchema schema) |
Modifier and Type | Method and Description |
---|---|
void |
addItem(String key, PdfDate d)
Sets the value of the collection item.
|
void |
addItem(String key, PdfNumber n)
Sets the value of the collection item.
|
PdfCollectionItem |
addItem(String key, String value)
Sets the value of the collection item.
|
protected boolean |
isWrappedObjectMustBeIndirect()
Defines if the object behind this wrapper must be an indirect object in the resultant document.
|
PdfCollectionItem |
setPrefix(String key, String prefix)
Adds a prefix for the Collection item.
|
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
public PdfCollectionItem(PdfCollectionSchema schema)
public PdfCollectionItem addItem(String key, String value)
key
-
value
-
public void addItem(String key, PdfDate d)
d
-
public void addItem(String key, PdfNumber n)
n
-
public PdfCollectionItem setPrefix(String key, String prefix)
key
-
prefix
-
protected boolean isWrappedObjectMustBeIndirect()
PdfObjectWrapper
isWrappedObjectMustBeIndirect
in class PdfObjectWrapper<PdfDictionary>
Copyright © 1998–2017 iText Group NV. All rights reserved.