Table of Contents

Method GetRequiredArray

Namespace
PdfSharp.Pdf
Assembly
PdfSharp.dll

GetRequiredArray(string, VCF, Type?)

public PdfArray GetRequiredArray(string key, VCF options = VCF.None, Type? valueType = null)

Parameters

key string
options VCF
valueType Type

Returns

PdfArray

GetRequiredArray<T>(string, VCF)

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

public T GetRequiredArray<T>(string key, VCF options = VCF.None) where T : PdfArray

Parameters

key string

The key.

options VCF

The creation options.

Returns

T

Type Parameters

T