{"repo":"PejmanNik/puppeteer-report","free":true,"listed":false,"github":"https://github.com/PejmanNik/puppeteer-report","clone":"git clone https://github.com/PejmanNik/puppeteer-report.git","description":"Convert HTML to PDF by Puppeteer with support of adding a custom header, footer, and page number","language":"TypeScript","stars":158,"topics":["pdf","puppeteer","puppeteer-pdf","html-to-pdf","htmltopdf","report","chrome-aws-lambda"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"Puppeteer Report --- ⚠️ THIS PROJECT IS IN MAINTENANCE MODE this library will be deprecated soon. Please migrate to the Paprize. The migration should be straightforward when using the Paprize Zero Config library. Paprize offers more features and goes beyond this library limitations. All previously reported issues have been resolved in Paprize. ------- Puppeteer Report is another library for converting HTML to PDF using puppeteer, adding support of custom header, footer, and pagination. Puppeteer has a very limited ability to customize the default header, footer, and pagination, however, it is the best tool available to convert HTML to PDF (supports the last version of CSS/HTML/JavaScript and fully Unicode characters) and make it possible to create fantastic reports using hundred of JavaScript/HTML/CSS tools, libraries, and templates. Puppeteer Report adding support of customizing header, footer, and pagination to puppeteer. Also, it will let you use JavaScript code to apply customization in the converting process. How does it work? Puppeteer Report use puppeteer and pdf-lib under the hood to create a final PDF. To support headers or footers, Puppeteer Report creates two PDF files. The first one is the HTML content without header and footer. And the second one is header and footer repeated based upon original content PDF pages' number, then it merges them together. How to Install Using npm or yarn Convert To PDF The Puppeteer Report provides two methods to convert html to pdf ","default_branch":null,"files":null,"tree":[],"storefront":"/r/PejmanNik","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/PejmanNik/puppeteer-report/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}