HTML2PDF.JS Tutorial to Set PDF Document Page DPI Size or Scale in Browser Using Javascript

You are currently viewing HTML2PDF.JS Tutorial to Set PDF Document Page DPI Size or Scale in Browser Using Javascript

HTML2PDF.js Tutorial to Set PDF Document Page DPI Size or Scale in Browser Using Javascript

html2canvas: {
backgroundColor :'#000',
scale: 2,
dpi: 600,
imageTimeout: 0,
letterRendering: true,
},
jsPDF: {
format: 'a4',
pagesplit: true,
}

.zoom-out {
  /* CSS zoom property not supported by html2canvas */
  transform: scale(0.8);
  transform-origin: 0 0;
  margin: 0 -25% 0 0;
}

Ranjith

Hi, I'm Manoj a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Reply