Answers for "puppeeter pdf desktop"

0

puppeeter pdf desktop

// add this in your style tag / css file and add styles u wanna change
@page {
  size: A4;
  margin: 0;
}
@media print {
  .col {
      width: 25% !important;
  }
}

// puppeteer config
await page.pdf({
    ...options,
    printBackground: true,
});
Posted by: Guest on September-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language