Table of Contents

Class PdfCollectionItem

Namespace
iText.Kernel.Pdf.Collection
Assembly
itext.kernel.dll
public class PdfCollectionItem : PdfObjectWrapper<PdfDictionary>
Inheritance
PdfCollectionItem
Inherited Members

Constructors

PdfCollectionItem(PdfCollectionSchema)

public PdfCollectionItem(PdfCollectionSchema schema)

Parameters

schema PdfCollectionSchema

Methods

AddItem(string, string)

Sets the value of the collection item.

public virtual PdfCollectionItem AddItem(string key, string value)

Parameters

key string

is a key with which the specified value is to be associated

value string

is a value to be associated with the specified key

Returns

PdfCollectionItem

this instance to support fluent interface

AddItem(string, PdfDate)

Sets the date value of the collection item.

public virtual void AddItem(string key, PdfDate date)

Parameters

key string

is a key with which the specified date value is to be associated

date PdfDate

is a PDF date value to be associated with the specified key

AddItem(string, PdfNumber)

Sets the number value of the collection item.

public virtual void AddItem(string key, PdfNumber number)

Parameters

key string

is a key with which the specified number value is to be associated

number PdfNumber

is a PDF number value to be associated with the specified key

IsWrappedObjectMustBeIndirect()

protected override bool IsWrappedObjectMustBeIndirect()

Returns

bool

SetPrefix(string, string)

Adds a prefix for the Collection item.

public virtual PdfCollectionItem SetPrefix(string key, string prefix)

Parameters

key string

is a key identifying the Collection item

prefix string

is a prefix to be added

Returns

PdfCollectionItem

this instance to support fluent interface

Remarks

Adds a prefix for the Collection item. You can only use this method after you have set the value of the item.