AddSVGOptions
Overview
AddSVGOptions is a interface in Aspose.PDF FOSS for TypeScript.
Options for {@link Page.AddSVGObject}.
Properties: alt, artifact, filterScale, fit, font, resolveImage, and 1 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
fit | : 'meet' | 'slice' | 'fill' | Read | Override the file’s own preserveAspectRatio: ‘meet’ fits the drawing inside the rect, ‘slice’ covers it, ‘fill’ stretches each axis independently. |
font | : EmbeddedFont | Read | Face to use for any font-family the Standard-14 set cannot supply — a handle from {@link Document.AddFont}. |
filterScale | : number | Read | Resolution multiplier for a rasterized <filter>: a multiple of the placed device size. |
resolveImage | : (href: string) => Uint8Array | undefined | Read | Supply the bytes for an <image> or <feImage> href this library cannot decode itself — a relative path, an http: URL, or a data: payload whose bytes are not PNG or JPEG. |
tag | : StructElement | Read | Tag the drawing into the logical structure tree (marked content). |
alt | : string | Read | Create a /Figure carrying this /Alt and tag the drawing into it. |
artifact | : boolean | Read | Mark the drawing as an /Artifact — decoration carrying no meaning. |