Table of Contents

Method AsArray

Namespace
PdfSharp.Pdf.PdfItemExtensions
Assembly
PdfSharp.dll

AsArray(PdfItem?)

Casts a PDF item into a PDF array, or throws an exception if this is not possible.

public static PdfArray AsArray(this PdfItem? value)

Parameters

value PdfItem

Returns

PdfArray

AsArray<T>(PdfItem?)

Casts a PDF item into a PDF array of type T, or throws an exception if this is not possible.

public static T AsArray<T>(this PdfItem? value) where T : PdfArray

Parameters

value PdfItem

Returns

T

Type Parameters

T