/html-to-pdf

Primary LanguageJavaScriptThe UnlicenseUnlicense

HTML TO PDF Converter Microservice

This microservice will convert HTML to PDF. The conversion will be done with wkhtmltopdf

Prerequisites

  1. docker

Getting Started

$ make

Example Request

$ curl -X POST http://localhost:8080 -H 'Content-Type: application/json' -d '{"content":"<h1>Test</h1><p>Hello world</p>","options":{ "pageSize": "letter" }}'

  • content is the HTML which should be converted
  • options are optional parameters

License

This is public domain.