Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeSvgDrawingReader

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
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) #

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

Parameters

svgBytes byte[] required
options OfficeIMO.ContentSafety.OfficeContentSafetyOptions? = null optional
readerOptions OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions? = null optional
public static OfficeContentSafetyReport InspectContentSafety(string filePath, OfficeContentSafetyOptions? options = null, OfficeSvgDrawingReaderOptions? readerOptions = null) #

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

Parameters

filePath string required
options OfficeIMO.ContentSafety.OfficeContentSafetyOptions? = null optional
readerOptions OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions? = null optional
public static bool IsWithinSafetyLimits(byte[]? bytes, OfficeSvgDrawingReaderOptions? options = null) #

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 byte[]? required
options OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions? = null optional

Returns

bool
RemoveSelectedContent 2 overloads
public static OfficeContentCleanupResult RemoveSelectedContent(byte[] svgBytes, OfficeContentCleanupSelection selection, OfficeContentCleanupOptions? options = null, OfficeSvgDrawingReaderOptions? readerOptions = null) #

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

Parameters

svgBytes byte[] required
selection OfficeIMO.ContentSafety.OfficeContentCleanupSelection required
options OfficeIMO.ContentSafety.OfficeContentCleanupOptions? = null optional
readerOptions OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions? = null optional
public static OfficeContentCleanupResult RemoveSelectedContent(string inputPath, string outputPath, OfficeContentCleanupSelection selection, OfficeContentCleanupOptions? options = null, OfficeSvgDrawingReaderOptions? readerOptions = null) #

Atomically writes an explicitly cleaned SVG artifact.

Parameters

inputPath string required
outputPath string required
selection OfficeIMO.ContentSafety.OfficeContentCleanupSelection required
options OfficeIMO.ContentSafety.OfficeContentCleanupOptions? = null optional
readerOptions OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions? = null optional
TryRead 4 overloads
public static bool TryRead(byte[]? bytes, out OfficeDrawing? drawing) #

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

Parameters

bytes byte[]? required
drawing OfficeIMO.Drawing.OfficeDrawing? required

Returns

bool
public static bool TryRead(byte[]? bytes, out OfficeDrawing? drawing, out int unsupportedFeatureCount) #

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 byte[]? required
drawing OfficeIMO.Drawing.OfficeDrawing? required
unsupportedFeatureCount int required

Returns

bool
public static bool TryRead(byte[]? bytes, OfficeSvgDrawingReaderOptions? options, out OfficeDrawing? drawing) #

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

Parameters

bytes byte[]? required
options OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions? required
drawing OfficeIMO.Drawing.OfficeDrawing? required

Returns

bool
public static bool TryRead(byte[]? bytes, OfficeSvgDrawingReaderOptions? options, out OfficeDrawing? drawing, out int unsupportedFeatureCount) #

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 byte[]? required
options OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions? required
drawing OfficeIMO.Drawing.OfficeDrawing? required
unsupportedFeatureCount int required

Returns

bool