HTML to PDF converter that uses phantomjs. html-pdf can read the header or footer either out of the footer and header config object or out of the HTML source. You can either set a default header & footer or overwrite that by appending a page number (1 based index) to the id="pageHeader" attribute of an HTML tag. You can use any combination of those tags. The library tries to find any element, that contains the page header or pageFooter id prefix. The full options object gets converted to JSON and will get passed to the phantomjs script as third argument. There are more options concerning the paperSize, header & footer options inside the phantomjs script.

Features

  • The full options object gets converted to JSON and will get passed to the phantomjs script as third argument
  • Install the html-pdf utility via npm
  • HTML to PDF converter
  • Uses phantomjs
  • html-pdf can read the header or footer either out of the footer and header config object
  • You can either set a default header & footer or overwrite that by appending a page number

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow node-html-pdf

node-html-pdf Web Site

Other Useful Business Software
Resco toolkit for building mobile apps Icon
Resco toolkit for building mobile apps

A no-code toolkit for building responsive and resilient mobile business applications for Microsoft Power Platform, Dynamics 365, Dataverse and Salesfo

Deploying mobile apps with Resco takes days, not months—all without writing a single line of code. Workers can download the Resco app from AppStore, Google Play, or Windows Store, log into your company environment, and instantly use the app you have published on any device.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of node-html-pdf!

Additional Project Details

Operating Systems

Windows

Programming Language

JavaScript

Related Categories

JavaScript HTML XHTML, JavaScript PDF Editors, JavaScript PDF Converters

Registered

2023-04-18