/pdfgen

Simple fast service to convert html's to pdf

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

pdfgen

Simple html to pdf application. Takes the html input converts it to pdf.

Getting Started

Build docker image

docker build -t pdfgen .

Run docker image

docker run -dit -p 3000:3000 pdfgen

Usage

After you run the docker image you can use it easily like.

curl --location --request POST http://localhost:3000 --header 'Content-Type: application/json' --data-raw '{"html": "<h1>Hello world</h1>"}' -o sample.pdf

open sample.pdf