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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using html2canvas and Jspdf to create multiple pages based on the HTML. How can I add Headers for each page??
let page_section =document.querySelector(".page1");
let HTML_Width = page_section.offsetWidth;
let HTML_Height = page_section.offsetHeight;
let top_left_margin = 15;
let PDF_Width = HTML_Width + (top_left_margin * 2);
let PDF_Height = (PDF_Width * 1.2) + (top_left_margin * 2);
console.log(HTML_Width,HTML_Height,top_left_margin,PDF_Width,PDF_Height)
Beta Was this translation helpful? Give feedback.
All reactions