Table of Contents

Class PdfResources

Namespace
PdfSharp.Pdf.Advanced
Assembly
PdfSharp.dll

Represents a PDF resource object.

public sealed class PdfResources : PdfDictionary, ICloneable, IEnumerable<KeyValuePair<string, PdfItem?>>, IEnumerable
Inheritance
PdfResources
Implements
Inherited Members

Constructors

PdfResources(PdfDocument)

Initializes a new instance of the PdfResources class.

public PdfResources(PdfDocument document)

Parameters

document PdfDocument

The document.

Methods

AddExtGState(PdfExtGState)

Adds the specified graphics state to this resource dictionary and returns its local resource name.

public string AddExtGState(PdfExtGState extGState)

Parameters

extGState PdfExtGState

Returns

string

AddFont(PdfFont)

Adds the specified font to this resource dictionary and returns its local resource name.

public string AddFont(PdfFont font)

Parameters

font PdfFont

Returns

string

AddForm(PdfFormXObject)

Adds the specified form object to this resource dictionary and returns its local resource name.

public string AddForm(PdfFormXObject form)

Parameters

form PdfFormXObject

Returns

string

AddImage(PdfImage)

Adds the specified image to this resource dictionary and returns its local resource name.

public string AddImage(PdfImage image)

Parameters

image PdfImage

Returns

string

AddPattern(PdfShadingPattern)

Adds the specified pattern to this resource dictionary and returns its local resource name.

public string AddPattern(PdfShadingPattern pattern)

Parameters

pattern PdfShadingPattern

Returns

string

AddPattern(PdfTilingPattern)

Adds the specified pattern to this resource dictionary and returns its local resource name.

public string AddPattern(PdfTilingPattern pattern)

Parameters

pattern PdfTilingPattern

Returns

string

AddShading(PdfShading)

Adds the specified shading to this resource dictionary and returns its local resource name.

public string AddShading(PdfShading shading)

Parameters

shading PdfShading

Returns

string