DrawSVGA

Vector graphics, SVG, Page content

Description

ANSI variant of DrawSVG

Accepts string parameters as ANSI text and otherwise behaves identically to the wide-string entry point

Syntax

DLL

int DLDrawSVGA(int InstanceID, double Left, double Top, double Width, double Height, const char* SVG, const char* AltText);

Return values

Returns 1 when at least one supported vector shape is drawn, or 0 for empty, invalid, oversized, or unsupported-only input

Remarks

The supported vector subset includes svg, g, defs, use, clipPath (including clip-rule="evenodd"), marker (marker-start, marker-mid, marker-end, and marker with orient="auto", orient="auto-start-reverse", or fixed angles), image (inline data:image/...;base64,... URIs, and local file paths only when DrawSVGEx is called with PDF_SVG_IMPORT_ALLOW_FILTER_IMAGE_FILES), all standard path commands, basic geometry, transforms, view-box alignment, presentation attributes, simple tag, .class, and #id CSS rules, inline styles, fill, stroke, dash, opacity, and the full CSS Color Module Level 3 148 named palette plus #RGB/#RGBA/#RRGGBB/#RRGGBBAA, rgb()/rgba(), and hsl()/hsla() notations

Input is limited to 16 MiB, 100000 elements, and 128 nesting levels and does not load remote network resources

Gradient paint servers (linearGradient and radialGradient) render as clipped multi-stop vector gradients with objectBoundingBox and userSpaceOnUse coordinates, gradientTransform, and spreadMethod support; text and nested tspan elements inherit CSS and presentation typography and fall back to embedded document fonts when PDF/A or PDF/X compliance is active

The DLL DLDrawSVGA variant accepts text according to the configured ANSI mode