Need a special offer?Find out if your project fits.
+

jspdf unit

Answered
Sarah asked on January 11, 2021

Hello, 
I am trying to customize my pdf export, by adding som extra html.
Now, I have identified an issue with scale, because the jsPDF unit used in flexmonster is 'mm' instead of 'pt'. I have looked through the jsPDF github, and cannot find a workaround for this. Have you bumped in to this issue before? 
What I need to accomplish is to add html, and calculate the height of this html. Since I cannot find a callback function for fromHTML I am attempting to use the jsPDF .html function. I have attached a file showing the result I am getting. As you can see the text on page two is scaled up. 

Attachments:
pivot (54).pdf

1 answer

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster January 13, 2021

Hello,
 
Thank you for reaching out to us.
 
We want to kindly explain that we did not face this issue before.
Currently, we are not familiar with any workarounds for this behavior.
 
Our team recommends considering opening the GitHub issue on the jsPDF GitHub page.
 
Please contact us in case other questions arise.
 
Kind regards,
Illia

Please login or Register to Submit Answer