OfficeSvgDrawingReader
OfficeIMO.Drawing
Reads a bounded subset of SVG into the shared dependency-free drawing scene.
Inheritance
- object
- OfficeSvgDrawingReader
Methods
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[]
- options OfficeIMO.ContentSafety.OfficeContentSafetyOptions? = null
- readerOptions OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions? = null
Returns
OfficeContentSafetyReportpublic 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
- options OfficeIMO.ContentSafety.OfficeContentSafetyOptions? = null
- readerOptions OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions? = null
Returns
OfficeContentSafetyReportpublic 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[]?
- options OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions? = null
Returns
boolpublic 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[]
- selection OfficeIMO.ContentSafety.OfficeContentCleanupSelection
- options OfficeIMO.ContentSafety.OfficeContentCleanupOptions? = null
- readerOptions OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions? = null
Returns
OfficeContentCleanupResultpublic 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
- outputPath string
- selection OfficeIMO.ContentSafety.OfficeContentCleanupSelection
- options OfficeIMO.ContentSafety.OfficeContentCleanupOptions? = null
- readerOptions OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions? = null
Returns
OfficeContentCleanupResultpublic static bool TryRead(byte[]? bytes, out OfficeDrawing? drawing) #Attempts to interpret supported SVG vector primitives as a shared drawing.
Parameters
- bytes byte[]?
- drawing OfficeIMO.Drawing.OfficeDrawing?
Returns
boolpublic 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[]?
- drawing OfficeIMO.Drawing.OfficeDrawing?
- unsupportedFeatureCount int
Returns
boolpublic 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[]?
- options OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions?
- drawing OfficeIMO.Drawing.OfficeDrawing?
Returns
boolpublic 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[]?
- options OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions?
- drawing OfficeIMO.Drawing.OfficeDrawing?
- unsupportedFeatureCount int
Returns
bool