Table of Contents

Method AsDictionary

Namespace
PdfSharp.Pdf.PdfItemExtensions
Assembly
PdfSharp.dll

AsDictionary(PdfItem?)

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

public static PdfDictionary AsDictionary(this PdfItem? value)

Parameters

value PdfItem

Returns

PdfDictionary

AsDictionary<T>(PdfItem?)

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

public static T AsDictionary<T>(this PdfItem? value) where T : PdfDictionary

Parameters

value PdfItem

Returns

T

Type Parameters

T