Class PdfResources
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
PdfDocumentThe 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
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
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
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
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
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
AddShading(PdfShading)
Adds the specified shading to this resource dictionary and returns its local resource name.
public string AddShading(PdfShading shading)
Parameters
shading
PdfShading