public class PdfCollectionItem extends PdfObjectWrapper<PdfDictionary>
| Constructor and Description |
|---|
PdfCollectionItem(PdfCollectionSchema schema) |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(String key,
PdfDate date)
Sets the date value of the collection item.
|
void |
addItem(String key,
PdfNumber number)
Sets the number 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, unsetForbidReleasepublic PdfCollectionItem(PdfCollectionSchema schema)
public PdfCollectionItem addItem(String key, String value)
key - is a key with which the specified value is to be associatedvalue - is a value to be associated with the specified keypublic void addItem(String key, PdfDate date)
key - is a key with which the specified date value is to be associateddate - is a PDF date value to be associated with the specified keypublic void addItem(String key, PdfNumber number)
key - is a key with which the specified number value is to be associatednumber - is a PDF number value to be associated with the specified keypublic PdfCollectionItem setPrefix(String key, String prefix)
key - is a key identifying the Collection itemprefix - is a prefix to be addedprotected boolean isWrappedObjectMustBeIndirect()
PdfObjectWrapperisWrappedObjectMustBeIndirect in class PdfObjectWrapper<PdfDictionary>Copyright © 1998–2021 iText Group NV. All rights reserved.