
This repo isn't maintained anymore as phantomjs got dreprecated a long time ago. Please migrate to headless chrome/puppeteer.
The node-html-pdf is an innovative tool designed for converting HTML documents into PDF files using phantomjs. This utility is particularly useful for businesses and developers who need to generate documents such as receipts, invoices, or any other HTML-based formats that require a professional finish. With its straightforward installation via npm and a robust API, it caters to both simple and complex document generation needs.
In addition to its core functionality, the library offers customizable headers and footers, enabling users to tailor documents to their specific requirements. Whether you're creating business cards or detailed reports, node-html-pdf provides an efficient solution to generate high-quality PDFs that are both visually appealing and functional.
Easy Installation: The utility can be easily installed using npm, allowing for quick integration into any project.
Header and Footer Customization: Users can set default headers and footers or customize them per page using specific HTML tags.
Robust API: The library offers a comprehensive API that allows fine-tuning of document generation to suit various needs.
Flexible Options Object: Users can pass a complete options object to configure aspects such as paper size and specific header/footer attributes.
PhantomJS Integration: Leverages phantomjs for rendering, ensuring high-quality PDF output from HTML sources.
Multi-page Support: Easily handles multi-page documents, automatically managing page numbers in headers and footers.
Versatile Document Types: Suitable for generating different types of documents, from business cards to detailed forms and receipts.
