This is an example on how to create an API service, using PhantomJS, to generate PDF documents from webpages.
- 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