API Reference
OfficeSvgDrawingReader
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) #OfficeContentSafetyReportInspects bounded SVG text for native, computed, geometric, clipping, compositing, and contrast concealment.
Parameters
- svgBytes System.Byte[]
- options OfficeIMO.ContentSafety.OfficeContentSafetyOptions? = null
- readerOptions OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions? = null
public static OfficeContentSafetyReport InspectContentSafety(String filePath, OfficeContentSafetyOptions? options = null, OfficeSvgDrawingReaderOptions? readerOptions = null) #OfficeContentSafetyReportInspects a bounded SVG file without treating concealment as evidence of AI authorship.
Parameters
- filePath System.String
- options OfficeIMO.ContentSafety.OfficeContentSafetyOptions? = null
- readerOptions OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions? = null
public static Boolean IsWithinSafetyLimits(Byte[]? bytes, OfficeSvgDrawingReaderOptions? options = null) #BooleanReturns 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[]?
- options OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions? = null
public static OfficeContentCleanupResult RemoveSelectedContent(Byte[] svgBytes, OfficeContentCleanupSelection selection, OfficeContentCleanupOptions? options = null, OfficeSvgDrawingReaderOptions? readerOptions = null) #OfficeContentCleanupResultRemoves only exact current SVG findings selected by the caller and then reopens and reinspects the result.
Parameters
- svgBytes System.Byte[]
- selection OfficeIMO.ContentSafety.OfficeContentCleanupSelection
- options OfficeIMO.ContentSafety.OfficeContentCleanupOptions? = null
- readerOptions OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions? = null
public static OfficeContentCleanupResult RemoveSelectedContent(String inputPath, String outputPath, OfficeContentCleanupSelection selection, OfficeContentCleanupOptions? options = null, OfficeSvgDrawingReaderOptions? readerOptions = null) #OfficeContentCleanupResultAtomically writes an explicitly cleaned SVG artifact.
Parameters
- inputPath System.String
- outputPath System.String
- selection OfficeIMO.ContentSafety.OfficeContentCleanupSelection
- options OfficeIMO.ContentSafety.OfficeContentCleanupOptions? = null
- readerOptions OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions? = null
public static Boolean TryRead(Byte[]? bytes, out OfficeDrawing? drawing) #BooleanAttempts to interpret supported SVG vector primitives as a shared drawing.
Parameters
- bytes System.Byte[]?
- drawing OfficeIMO.Drawing.OfficeDrawing?
public static Boolean TryRead(Byte[]? bytes, out OfficeDrawing? drawing, out Int32 unsupportedFeatureCount) #BooleanAttempts 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[]?
- drawing OfficeIMO.Drawing.OfficeDrawing?
- unsupportedFeatureCount System.Int32
public static Boolean TryRead(Byte[]? bytes, OfficeSvgDrawingReaderOptions? options, out OfficeDrawing? drawing) #BooleanAttempts to interpret supported SVG vector primitives using explicit bounded import options.
Parameters
- bytes System.Byte[]?
- options OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions?
- drawing OfficeIMO.Drawing.OfficeDrawing?
public static Boolean TryRead(Byte[]? bytes, OfficeSvgDrawingReaderOptions? options, out OfficeDrawing? drawing, out Int32 unsupportedFeatureCount) #BooleanAttempts 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[]?
- options OfficeIMO.Drawing.OfficeSvgDrawingReaderOptions?
- drawing OfficeIMO.Drawing.OfficeDrawing?
- unsupportedFeatureCount System.Int32
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?