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, unsetForbidRelease
public PdfCollectionItem(PdfCollectionSchema schema)
public PdfCollectionItem addItem(String key, String value)
key
- is a key with which the specified value is to be associated
value
- is a value to be associated with the specified key
public void addItem(String key, PdfDate date)
key
- is a key with which the specified date value is to be associated
date
- is a PDF date
value to be associated with the specified key
public void addItem(String key, PdfNumber number)
key
- is a key with which the specified number value is to be associated
number
- is a PDF number
value to be associated with the specified key
public PdfCollectionItem setPrefix(String key, String prefix)
key
- is a key identifying the Collection item
prefix
- is a prefix to be added
protected boolean isWrappedObjectMustBeIndirect()
PdfObjectWrapper
isWrappedObjectMustBeIndirect
in class PdfObjectWrapper<PdfDictionary>
Copyright © 1998–2022 iText Group NV. All rights reserved.