You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone,
i have added my code for downloading pdf
in this i have a dashboard object from which i have calculated height of each div which needs to be printed on pdf,
Hi everyone,
i have added my code for downloading pdf
in this i have a dashboard object from which i have calculated height of each div which needs to be printed on pdf,
const imageWidth = element.scrollWidth;
const a4Width = 595; // A4 width in pixels
const a4Height = 842; // A4 height in pixels
const scale = a4Width / imageWidth;
console.log('scale: ', scale);
}
calculated height of each div
[
{
"chartHeight": 76,
"chartHeightInPoints": 57,
"chartHeightFromTop": 2,
]
The text was updated successfully, but these errors were encountered: