API Reference
OfficeSvgDrawingReaderOptions
Controls bounded SVG import limits for trusted inputs that legitimately contain many elements.
Inheritance
- Object
- OfficeSvgDrawingReaderOptions
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Accepted by parameters
- Method OfficeSvgDrawingReader.InspectContentSafety
- Method OfficeSvgDrawingReader.InspectContentSafety
- Method OfficeSvgDrawingReader.IsWithinSafetyLimits
- Method OfficeSvgDrawingReader.RemoveSelectedContent
- Method OfficeSvgDrawingReader.RemoveSelectedContent
- Method OfficeSvgDrawingReader.TryRead
- Method OfficeSvgDrawingReader.TryRead
Constructors
public OfficeSvgDrawingReaderOptions() #Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public OfficeFontFaceCollection Fonts { get; } #Scoped font faces available when SVG text must be converted to painted vector outlines. Callers can register web fonts without changing process-wide font state.
public OfficeSvgForeignObjectRenderer ForeignObjectRenderer { get; set; } #Optional caller-owned renderer for bounded inline XHTML inside SVG foreignObject elements. The returned drawing must use the exact viewport dimensions supplied by the context.
public Int32 MaximumElements { get; set; } #Maximum number of descendant and expanded reference elements. Increase this only for trusted SVG input.
public Double MaximumViewportDimension { get; set; } #Maximum SVG viewport width or height. Increase this only for trusted SVG input.
public Double MaximumViewportPixels { get; set; } #Maximum SVG viewport width-times-height area. Increase this only for trusted SVG input.
public Int32 MaximumContentSafetyVisualComparisons { get; set; } #Maximum full-document visual comparisons used for paint-order and background evidence. Set this to zero to use structural inspection only; the report records that visual comparison was disabled.
public Int64 MaximumContentSafetyVisualPixels { get; set; } #Cumulative rendered-pixel work allowed across the SVG content-safety baseline and comparison renders.
Fields
public const Int32 DefaultMaximumElements #Default maximum number of descendant and expanded reference elements.
10000public const Int32 MaximumAllowedElements #Hard maximum accepted by the reader, even when explicitly requested.
100000public const Double DefaultMaximumViewportDimension #Default maximum width or height of an imported SVG viewport.
8192public const Double MaximumAllowedViewportDimension #Hard maximum viewport dimension accepted for explicitly trusted SVG input.
1000000public const Double DefaultMaximumViewportPixels #Default maximum viewport area accepted by the reader.
16777216public const Double MaximumAllowedViewportPixels #Hard maximum viewport area accepted for explicitly trusted SVG input.
268435456public const Int32 DefaultMaximumContentSafetyVisualComparisons #Default maximum number of full SVG visual comparisons performed by content-safety inspection.
32public const Int32 MaximumAllowedContentSafetyVisualComparisons #Hard maximum number of SVG visual comparisons accepted from a caller.
128public const Int64 DefaultMaximumContentSafetyVisualPixels #Default cumulative rendered-pixel budget for SVG content-safety inspection.
33554432public const Int64 MaximumAllowedContentSafetyVisualPixels #Hard maximum cumulative rendered-pixel budget accepted from a caller.
134217728