Class SVGImage
Used to embed SVG images in the PDF document.
public class SVGImage : IDrawable
- Inheritance
-
SVGImage
- Implements
- Inherited Members
Constructors
SVGImage(Stream)
Used to embed SVG images in the PDF document.
public SVGImage(Stream stream)
Parameters
streamStreamthe input stream.
SVGImage(string)
Used to embed SVG images in the PDF document.
public SVGImage(string svgPath)
Parameters
svgPathstringthe path to the SVG file.
Fields
key
The destination key used by the GoTo action.
protected string key
Field Value
uri
The URI opened when the image is clicked.
protected string uri
Field Value
Methods
DrawOn(Page)
Draws this SVG image on the specified page.
public float[] DrawOn(Page page)
Parameters
pagePage
Returns
- float[]
GetHeight()
Returns the height of this SVG image.
public float GetHeight()
Returns
GetWidth()
Returns the width of this SVG image.
public float GetWidth()
Returns
ScaleBy(float)
Scales this SVG image by the specified factor.
public SVGImage ScaleBy(float factor)
Parameters
factorfloat
Returns
SetActualText(string)
Sets the actual text of this image.
public SVGImage SetActualText(string actualText)
Parameters
actualTextstring
Returns
SetAltDescription(string)
Sets the alternate description of this image.
public SVGImage SetAltDescription(string altDescription)
Parameters
altDescriptionstring
Returns
SetGoToAction(string)
Sets the destination key for the action.
public SVGImage SetGoToAction(string key)
Parameters
keystring
Returns
SetLanguage(string)
Sets the language of this image, for example "en-US".
public SVGImage SetLanguage(string language)
Parameters
languagestring
Returns
SetLocation(float, float)
Sets the location of the top left corner of this image on the page.
public SVGImage SetLocation(float x, float y)
Parameters
Returns
SetURIAction(string)
Sets the URI for the "click box" action.
public SVGImage SetURIAction(string uri)
Parameters
uristring