Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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,
});
 
PREVIOUS NEXT
Tagged: #puppeeter #pdf #desktop
ADD COMMENT
Topic
Name
6+5 =