Table of Contents

Method GetDictionary

Namespace
PdfSharp.Pdf
Assembly
PdfSharp.dll

GetDictionary(string, VCF, Type?)

Gets the PdfDictionary with the specified key, or null, if no such object exists and should not be created. If the key refers to a reference, the referenced PdfDictionary is returned.

public PdfDictionary? GetDictionary(string key, VCF options = VCF.None, Type? valueType = null)

Parameters

key string
options VCF
valueType Type

Returns

PdfDictionary

GetDictionary<T>(string, VCF)

Gets the PdfDictionary with the specified key, or null, if no such object exists and should not be created. If the key refers to a reference, the referenced PdfDictionary is returned. If the dictionary exists, but cannot be transformed to type T, an exception is thrown.

public T? GetDictionary<T>(string key, VCF options = VCF.None) where T : PdfDictionary

Parameters

key string

The key.

options VCF

The creation options.

Returns

T

Type Parameters

T

The type of the PDF dictionary.