Public | Automated Build

Last pushed: 5 months ago
Short Description
Rasterizer based on PhantomJS
Full Description

html2pdf

PDF screenshot API based on PhantomJS

Node version

version >= 4.0.0

Usage

$ NODE_ENV=production npm install
$ NODE_ENV=production PORT=4005 npm start
Open http://localhost:4005/export?url=http://www.google.com&filename=google.pdf&format=A4&orientation=portrait

Usage with SPA

// on page_load
window.phantomWaitForCallback = true;

// when you are done fetching your api and rendering the page
if (typeof window.callPhantom === 'function') {
 window.callPhantom({ event: 'loaded' });
}
Docker Pull Command
Owner
predicsis
Source Repository

Comments (0)