Table of Contents

Class SVGImage

Namespace
PDFjet.NET
Assembly
PDFjet.dll

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

stream Stream

the input stream.

SVGImage(string)

Used to embed SVG images in the PDF document.

public SVGImage(string svgPath)

Parameters

svgPath string

the path to the SVG file.

Fields

key

The destination key used by the GoTo action.

protected string key

Field Value

string

uri

The URI opened when the image is clicked.

protected string uri

Field Value

string

Methods

DrawOn(Page)

Draws this SVG image on the specified page.

public float[] DrawOn(Page page)

Parameters

page Page

Returns

float[]

GetHeight()

Returns the height of this SVG image.

public float GetHeight()

Returns

float

GetWidth()

Returns the width of this SVG image.

public float GetWidth()

Returns

float

ScaleBy(float)

Scales this SVG image by the specified factor.

public SVGImage ScaleBy(float factor)

Parameters

factor float

Returns

SVGImage

SetActualText(string)

Sets the actual text of this image.

public SVGImage SetActualText(string actualText)

Parameters

actualText string

Returns

SVGImage

SetAltDescription(string)

Sets the alternate description of this image.

public SVGImage SetAltDescription(string altDescription)

Parameters

altDescription string

Returns

SVGImage

SetGoToAction(string)

Sets the destination key for the action.

public SVGImage SetGoToAction(string key)

Parameters

key string

Returns

SVGImage

SetLanguage(string)

Sets the language of this image, for example "en-US".

public SVGImage SetLanguage(string language)

Parameters

language string

Returns

SVGImage

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

x float
y float

Returns

SVGImage

SetURIAction(string)

Sets the URI for the "click box" action.

public SVGImage SetURIAction(string uri)

Parameters

uri string

Returns

SVGImage