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

NameTypeAccessDescription
fit: 'meet' | 'slice' | 'fill'ReadOverride the file’s own preserveAspectRatio: ‘meet’ fits the drawing inside the rect, ‘slice’ covers it, ‘fill’ stretches each axis independently.
font: EmbeddedFontReadFace to use for any font-family the Standard-14 set cannot supply — a handle from {@link Document.AddFont}.
filterScale: numberReadResolution multiplier for a rasterized <filter>: a multiple of the placed device size.
resolveImage: (href: string) => Uint8Array | undefinedReadSupply 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: StructElementReadTag the drawing into the logical structure tree (marked content).
alt: stringReadCreate a /Figure carrying this /Alt and tag the drawing into it.
artifact: booleanReadMark the drawing as an /Artifact — decoration carrying no meaning.