Categorygithub.com/abdollahpour/micro-pdf-generator

# README

Last release License Docker Image Size (latest by date) Coverage Status Build Status

micro-pdf-generator

Fast HTTP microservice written in Go for PDF generating. micro-pdf-generator can be used as a private or public HTTP service for massive HTML to pdf conversion. For example:

curl \
  -F template="https://raw.githubusercontent.com/abdollahpour/micro-pdf-generator/master/docs/template.html" \
  -F data="https://raw.githubusercontent.com/abdollahpour/micro-pdf-generator/master/docs/data.json" \
   http://micro-pdf-generator.demo.161.97.186.241.sslip.io/pdf/sample.pdf -o sample.pdf

It uses Go template format but you can also use normal standalone html (for template) and don't pass data. You can also use url, file and string for both data and template parameters (check configurations)

More

TODO

  • Add more test
  • Complete docs
  • Complete templates
  • Add system template for HTML errors
  • Add JSON schema support

# Packages

No description provided by the author