API Reference
OfficeDrawingSvgExporter
Exports dependency-free OfficeIMO drawings to SVG for consumers that need a portable visual fallback.
Inheritance
- Object
- OfficeDrawingSvgExporter
Methods
public static String ToSvg(OfficeDrawing drawing) #StringConverts a drawing to an SVG document.
Parameters
- drawing OfficeIMO.Drawing.OfficeDrawing
- Drawing to export.
Returns
SVG markup representing the drawing.
public static String ToSvg(OfficeDrawing drawing, Double scale) #StringConverts a drawing to an SVG document with a scaled output surface.
Parameters
- drawing OfficeIMO.Drawing.OfficeDrawing
- Drawing to export.
- scale System.Double
- Scale applied to the exported SVG width and height.
Returns
SVG markup representing the drawing.
public static String ToSvg(OfficeDrawing drawing, Double scale, OfficeSvgSizeUnit sizeUnit) #StringConverts a drawing to an SVG document with an explicit root size unit.
Parameters
- drawing OfficeIMO.Drawing.OfficeDrawing
- Drawing to export.
- scale System.Double
- Scale applied to the exported SVG width and height.
- sizeUnit OfficeIMO.Drawing.OfficeSvgSizeUnit
- Unit written on the root width and height attributes.
Returns
SVG markup representing the drawing.
public static String ToSvg(OfficeDrawing drawing, Double scale, OfficeSvgSizeUnit sizeUnit, IOfficeRasterImageCodec imageCodec) #StringConverts a drawing to SVG and uses an optional shared codec for source images that require transcoding.
Parameters
- drawing OfficeIMO.Drawing.OfficeDrawing
- scale System.Double
- sizeUnit OfficeIMO.Drawing.OfficeSvgSizeUnit
- imageCodec OfficeIMO.Drawing.IOfficeRasterImageCodec
public static String ToSvg(OfficeDrawing drawing, Double scale, OfficeSvgSizeUnit sizeUnit, IOfficeRasterImageCodec imageCodec, String resourceIdPrefix) #StringConverts a drawing to SVG and prefixes every generated resource identifier for safe inline composition.
Parameters
- drawing OfficeIMO.Drawing.OfficeDrawing
- scale System.Double
- sizeUnit OfficeIMO.Drawing.OfficeSvgSizeUnit
- imageCodec OfficeIMO.Drawing.IOfficeRasterImageCodec
- resourceIdPrefix System.String
public static String ToSvg(OfficeDrawing drawing, Double scale, OfficeSvgSizeUnit sizeUnit, IOfficeRasterImageCodec imageCodec, String resourceIdPrefix, CancellationToken cancellationToken) #StringConverts a drawing to SVG with bounded cancellation and a safe generated-resource prefix.
Parameters
- drawing OfficeIMO.Drawing.OfficeDrawing
- scale System.Double
- sizeUnit OfficeIMO.Drawing.OfficeSvgSizeUnit
- imageCodec OfficeIMO.Drawing.IOfficeRasterImageCodec
- resourceIdPrefix System.String
- cancellationToken System.Threading.CancellationToken
public static Byte[] ToSvgBytes(OfficeDrawing drawing) #Byte[]Converts a drawing to UTF-8 SVG bytes.
Parameters
- drawing OfficeIMO.Drawing.OfficeDrawing
- Drawing to export.
Returns
UTF-8 encoded SVG bytes.
public static Byte[] ToSvgBytes(OfficeDrawing drawing, Double scale) #Byte[]Converts a drawing to UTF-8 SVG bytes with a scaled output surface.
Parameters
- drawing OfficeIMO.Drawing.OfficeDrawing
- Drawing to export.
- scale System.Double
- Scale applied to the exported SVG width and height.
Returns
UTF-8 encoded SVG bytes.
public static Byte[] ToSvgBytes(OfficeDrawing drawing, Double scale, OfficeSvgSizeUnit sizeUnit) #Byte[]Converts a drawing to UTF-8 SVG bytes with an explicit root size unit.
Parameters
- drawing OfficeIMO.Drawing.OfficeDrawing
- scale System.Double
- sizeUnit OfficeIMO.Drawing.OfficeSvgSizeUnit
public static Byte[] ToSvgBytes(OfficeDrawing drawing, Double scale, OfficeSvgSizeUnit sizeUnit, IOfficeRasterImageCodec imageCodec) #Byte[]Converts a drawing to UTF-8 SVG bytes and uses an optional shared image codec.
Parameters
- drawing OfficeIMO.Drawing.OfficeDrawing
- scale System.Double
- sizeUnit OfficeIMO.Drawing.OfficeSvgSizeUnit
- imageCodec OfficeIMO.Drawing.IOfficeRasterImageCodec
public static Byte[] ToSvgBytes(OfficeDrawing drawing, Double scale, OfficeSvgSizeUnit sizeUnit, IOfficeRasterImageCodec imageCodec, String resourceIdPrefix) #Byte[]Converts a drawing to UTF-8 SVG bytes and prefixes generated resource identifiers for safe inline composition.
Parameters
- drawing OfficeIMO.Drawing.OfficeDrawing
- scale System.Double
- sizeUnit OfficeIMO.Drawing.OfficeSvgSizeUnit
- imageCodec OfficeIMO.Drawing.IOfficeRasterImageCodec
- resourceIdPrefix System.String
public static Byte[] ToSvgBytes(OfficeDrawing drawing, Double scale, OfficeSvgSizeUnit sizeUnit, IOfficeRasterImageCodec imageCodec, String resourceIdPrefix, CancellationToken cancellationToken) #Byte[]Converts a drawing to cancellable UTF-8 SVG bytes and prefixes generated resource identifiers.
Parameters
- drawing OfficeIMO.Drawing.OfficeDrawing
- scale System.Double
- sizeUnit OfficeIMO.Drawing.OfficeSvgSizeUnit
- imageCodec OfficeIMO.Drawing.IOfficeRasterImageCodec
- resourceIdPrefix System.String
- cancellationToken System.Threading.CancellationToken
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object