Public Repository

Last pushed: 6 months ago
Short Description
HTML to PDF converter microservice based on phantomjs and rasterize.js
Full Description

Description

This is HTML to PDF converter microservice based on phantomjs and rasterize.js

Container is based on https://hub.docker.com/r/wernight/phantomjs/ version and just adds rasterize.js script and server executable to it.

Usage

Simply start this container with command

docker run -d --name phantomjs-html2pdf -p 7777:7777 ontrif/phantomjs-html2pdf

Then you can convert any html to pdf by sending it to http://localhost:7777/pdf endpoint. Html content of page must be sent as POST body:

curl -d '@/path/to/file.html' 'http://localhost:7777/pdf' -o book.pdf
Docker Pull Command
Owner
ontrif

Comments (0)