-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Bounding box of form objects is incorrect for units other than 'pt' #3627
Comments
Hi, I would like to work on this issue. Can you assign it to me ? |
Hi, I would like to work on this issue aswell. Can I be assigned to it too ? |
Hello, I would like to participate in the resolution of this issue. Can you assign it to me ? |
hello, i would like to resolve this issue. Can you assign it to me. |
Hello, There is an error in the code to reproduce the issue, it is not a const doc but a var doc. When you copy the code to reproduce the output in JsPDF, it doesn't do anything until you change the const to var. |
Hello, this : #3682 will solve the issue. |
Steps to reproduce
Expected output
Actual output
actual.pdf
Form object:
Issue
The width and height of the bbox are scaled with the inverse scaling factor:
jsPDF/src/jspdf.js
Lines 5957 to 5964 in 5d09af9
called by
jsPDF/src/jspdf.js
Lines 5707 to 5721 in 5d09af9
called by
jsPDF/src/jspdf.js
Lines 5751 to 5771 in 5d09af9
x and y are not scaled.
The expected behavior is that x, y, with, height are all scaled by the normal (not inverse) scaling factor. This way the values passed to beginFormObject are actually interpreted with the correct unit.
This issue came up in yWorks/svg2pdf.js#244.
The text was updated successfully, but these errors were encountered: