Skip to content

modern-pdf-lib


modern-pdf-lib / drawSvgOnPage

Function: drawSvgOnPage()

drawSvgOnPage(page, svgString, options?): void

Defined in: src/assets/svg/svgToPdf.ts:471

Draw an SVG string onto a PDF page.

Parses the SVG, converts it to PDF operators, and appends them to the page's content stream.

Parameters

page

PdfPage

svgString

string

options?

SvgRenderOptions

Returns

void

Released under the MIT License.