Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeSvgDrawingReader

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Modifiers static

Reads a bounded subset of SVG into the shared dependency-free drawing scene.

Inheritance

  • Object
  • OfficeSvgDrawingReader

Methods

InspectContentSafety 2 overloads
public static OfficeContentSafetyReport InspectContentSafety(Byte[] svgBytes, OfficeContentSafetyOptions options = null, OfficeSvgDrawingReaderOptions readerOptions = null) #
Returns: OfficeContentSafetyReport

Inspects bounded SVG text for native, computed, geometric, clipping, compositing, and contrast concealment.

Parameters

svgBytes System.Byte[] requiredposition: 0
options OfficeIMO.ContentSafety.OfficeContentSafetyOptions = null optionalposition: 1
readerOptions OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions = null optionalposition: 2
public static OfficeContentSafetyReport InspectContentSafety(String filePath, OfficeContentSafetyOptions options = null, OfficeSvgDrawingReaderOptions readerOptions = null) #
Returns: OfficeContentSafetyReport

Inspects a bounded SVG file without treating concealment as evidence of AI authorship.

Parameters

filePath System.String requiredposition: 0
options OfficeIMO.ContentSafety.OfficeContentSafetyOptions = null optionalposition: 1
readerOptions OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions = null optionalposition: 2
public static Boolean IsWithinSafetyLimits(Byte[] bytes, OfficeSvgDrawingReaderOptions options = null) #
Returns: Boolean

Returns whether an SVG payload is well formed and stays within the supplied parser and viewport safety limits, regardless of whether every valid SVG shape can be imported into an OfficeDrawing.

Parameters

bytes System.Byte[] requiredposition: 0
options OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions = null optionalposition: 1
RemoveSelectedContent 2 overloads
public static OfficeContentCleanupResult RemoveSelectedContent(Byte[] svgBytes, OfficeContentCleanupSelection selection, OfficeContentCleanupOptions options = null, OfficeSvgDrawingReaderOptions readerOptions = null) #
Returns: OfficeContentCleanupResult

Removes only exact current SVG findings selected by the caller and then reopens and reinspects the result.

Parameters

svgBytes System.Byte[] requiredposition: 0
selection OfficeIMO.ContentSafety.OfficeContentCleanupSelection requiredposition: 1
options OfficeIMO.ContentSafety.OfficeContentCleanupOptions = null optionalposition: 2
readerOptions OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions = null optionalposition: 3
public static OfficeContentCleanupResult RemoveSelectedContent(String inputPath, String outputPath, OfficeContentCleanupSelection selection, OfficeContentCleanupOptions options = null, OfficeSvgDrawingReaderOptions readerOptions = null) #
Returns: OfficeContentCleanupResult

Atomically writes an explicitly cleaned SVG artifact.

Parameters

inputPath System.String requiredposition: 0
outputPath System.String requiredposition: 1
selection OfficeIMO.ContentSafety.OfficeContentCleanupSelection requiredposition: 2
options OfficeIMO.ContentSafety.OfficeContentCleanupOptions = null optionalposition: 3
readerOptions OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions = null optionalposition: 4
TryRead 4 overloads
public static Boolean TryRead(Byte[] bytes, out OfficeDrawing drawing) #
Returns: Boolean

Attempts to interpret supported SVG vector primitives as a shared drawing.

Parameters

bytes System.Byte[] requiredposition: 0
drawing OfficeIMO.Drawing.OfficeDrawing@ requiredposition: 1
public static Boolean TryRead(Byte[] bytes, out OfficeDrawing drawing, out Int32 unsupportedFeatureCount) #
Returns: Boolean

Attempts to interpret supported SVG vector primitives as a shared drawing and reports the number of elements or declarations that required omission or fallback.

Parameters

bytes System.Byte[] requiredposition: 0
drawing OfficeIMO.Drawing.OfficeDrawing@ requiredposition: 1
unsupportedFeatureCount System.Int32@ requiredposition: 2
public static Boolean TryRead(Byte[] bytes, OfficeSvgDrawingReaderOptions options, out OfficeDrawing drawing) #
Returns: Boolean

Attempts to interpret supported SVG vector primitives using explicit bounded import options.

Parameters

bytes System.Byte[] requiredposition: 0
options OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions requiredposition: 1
drawing OfficeIMO.Drawing.OfficeDrawing@ requiredposition: 2
public static Boolean TryRead(Byte[] bytes, OfficeSvgDrawingReaderOptions options, out OfficeDrawing drawing, out Int32 unsupportedFeatureCount) #
Returns: Boolean

Attempts to interpret supported SVG vector primitives using explicit bounded import options and reports the number of elements or declarations that required omission or fallback.

Parameters

bytes System.Byte[] requiredposition: 0
options OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions requiredposition: 1
drawing OfficeIMO.Drawing.OfficeDrawing@ requiredposition: 2
unsupportedFeatureCount System.Int32@ requiredposition: 3