A javascript-only SVG to PDF conversion utility that runs in the browser. Brought to you by yWorks - the diagramming experts
#279: Fix
Make getAttribute safer
This release mainly brings some bugfixes and the support for numerical font weights.
@import
rulesclip-path
attribute<marker>
elementsAdded support for some awesome new features thanks to @Mrfence97. Also thanks to the other contributions in context of the Hacktoberfest!
currentColor
textLength
attribute<tspan>
s. Also fixed some text positioning issues.Awesome major release with many cool new features.
doc.svg(...)
instead of svg2pdf(element, doc)
now. jsPDF is now a peer dependency.scale
option with width
and height
options.x/yOffset
to x/y
New Features:
<style>
elements, <link>
elements, xml-stylesheet
s, and inline styles.<symbol>
elements.Bugfixes:
rx
or ry
is omitted; better output for regular rects.stroke
and stroke-width
attributes on text
/tSpan
attributesFix a bug where references inside an inline SVG image would result in an exception.