svg2pdf.js icon indicating copy to clipboard operation
svg2pdf.js copied to clipboard

Incorrect position of text compared with other text inside pdf

Open arturasn opened this issue 4 years ago • 5 comments

Some elements of the SVG are rendered incorrectly compared the html and pdf generated version of the svg2pdf.js. Rotated text(I character) incorrectly aligned with APART1 text middle: link

arturasn avatar Nov 07 '20 14:11 arturasn

Examples where incorrect positioning is more likely seen: link

arturasn avatar Nov 07 '20 23:11 arturasn

Seems like dominant-baseline="text-before-edge" is the unsupported attribute. That's a known issue, I guess. So this seems like a duplicate of #80

yGuy avatar Nov 09 '20 08:11 yGuy

Seems to be alignment-baseline="text-before-edge" also unsupported, so it is not only an issue of dominant-baseline. link

arturasn avatar Nov 09 '20 09:11 arturasn

Yes, see #109 and this comment: https://github.com/yWorks/svg2pdf.js/pull/114#pullrequestreview-307052649 - this is a missing feature in jspdf, already, as far as I can tell.

yGuy avatar Nov 09 '20 09:11 yGuy