Table of Contents

Class PdfItemExtensions

Namespace
PdfSharp.Pdf.PdfItemExtensions
Assembly
PdfSharp.dll

Extension methods for PDF items.

public static class PdfItemExtensions
Inheritance
object
PdfItemExtensions

Methods

AsArray(PdfItem?)

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

AsArray<T>(PdfItem?)

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

AsDictionary(PdfItem?)

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

AsDictionary<T>(PdfItem?)

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

AsReference(PdfItem?)

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