Skip to content

PDFCosDictionaryContainer

Namespace: O2S.Components.PDF4NET.Core.Cos

Defines a PDF COS dictionary that can exist by itself (referenced from xref) in the PDF file.

public class PDFCosDictionaryContainer : PDFCosDictionary, IPDFCosObjectContainer

Inheritance ObjectPDFCosObjectPDFCosDictionaryPDFCosDictionaryContainer
Implements IPDFCosObjectContainer

Constructors

PDFCosDictionaryContainer()

Initializes a new PDFCosDictionaryContainer object.

public PDFCosDictionaryContainer()

PDFCosDictionaryContainer(PDFCosDictionary)

Initializes a new PDFCosDictionaryContainer object.

public PDFCosDictionaryContainer(PDFCosDictionary dictionary)

Parameters

dictionary PDFCosDictionary
Source dictionary.


Properties

Count

Gets the number of key/value pairs contained in the Dictionary.

public int Count { get; }

Property Value

Int32


FileOffset

Gets the object's file offset.

public long FileOffset { get; internal set; }

Property Value

Int64
The offset of the object from the start of the PDF file.

Remarks

If the object is newly created and it is not loaded from a file, this property is 0.


Item

public PDFCosObject Item { get; set; }

Property Value

PDFCosObject


Item

public PDFCosObject Item { get; set; }

Property Value

PDFCosObject


Keys

Gets a collection containing the keys in the Dictionary.

public String[] Keys { get; }

Property Value

String[]
A string array containing the keys in the Dictionary.


OriginalObjectNumber

Gets the original object number.

public long OriginalObjectNumber { get; internal set; }

Property Value

Int64
The object number in the source PDF file.

Remarks

If the object is newly created and it is not loaded from a file, this property is 0.


Type

Gets the object type.

public PDFCosObjectType Type { get; }

Property Value

PDFCosObjectType


Methods