iamawwsome / phantomjs-html-pdf

An example on how to create an API service, using PhantomJS, to generate PDF documents from webpages.

Home Page:http://www.aww-some.com/blog/phantomjs-html-to-pdf/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PhantomJS: HTML to PDF

This is an example on how to create an API service, using PhantomJS, to generate PDF documents from webpages.

Prerequisites

  • NodeJS 6+
  • Yarn 1.3+
  • NPM 5+

Download the PhantomJS binary at http://phantomjs.org/download.html and place the executable in this project's bin directory.

yarn install && node index.js

The example php website should be accessible at http://localhost:3000

About

An example on how to create an API service, using PhantomJS, to generate PDF documents from webpages.

http://www.aww-some.com/blog/phantomjs-html-to-pdf/


Languages

Language:JavaScript 100.0%