Sign inSign up

ontrif/phantomjs-html2pdf

By ontrif

Updated over 9 years ago

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

Image
0

1.9K

ontrif/phantomjs-html2pdf repository overview

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

Tag summary

Content type

Image

Digest

Size

83.8 MB

Last updated

over 9 years ago

docker pull ontrif/phantomjs-html2pdf