Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect position of text compared with other text inside pdf #159

Open
arturasn opened this issue Nov 7, 2020 · 4 comments
Open

Incorrect position of text compared with other text inside pdf #159

arturasn opened this issue Nov 7, 2020 · 4 comments
Labels
duplicate enhancement help wanted Help with creating a proper test-case, looking up the spec, or creating a pull request.

Comments

@arturasn
Copy link

arturasn commented Nov 7, 2020

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 arturasn changed the title Incorrect alignment of text with line and position of image inside pdf Incorrect alignment of text with line inside pdf Nov 7, 2020
@arturasn arturasn changed the title Incorrect alignment of text with line inside pdf Incorrect alignment of text with rotated text inside pdf Nov 7, 2020
@arturasn
Copy link
Author

arturasn commented Nov 7, 2020

Examples where incorrect positioning is more likely seen: link

@arturasn arturasn changed the title Incorrect alignment of text with rotated text inside pdf Incorrect postion of text with rotated text inside pdf Nov 7, 2020
@arturasn arturasn changed the title Incorrect postion of text with rotated text inside pdf Incorrect position of text with rotated text inside pdf Nov 7, 2020
@arturasn arturasn changed the title Incorrect position of text with rotated text inside pdf Incorrect position of text compared with other text inside pdf Nov 7, 2020
@yGuy
Copy link
Member

yGuy commented Nov 9, 2020

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 yGuy added bug duplicate enhancement help wanted Help with creating a proper test-case, looking up the spec, or creating a pull request. and removed bug labels Nov 9, 2020
@arturasn
Copy link
Author

arturasn commented Nov 9, 2020

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

@yGuy
Copy link
Member

yGuy commented Nov 9, 2020

Yes, see #109 and this comment: #114 (review) - this is a missing feature in jspdf, already, as far as I can tell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate enhancement help wanted Help with creating a proper test-case, looking up the spec, or creating a pull request.
Projects
None yet
Development

No branches or pull requests

2 participants