micro-pdf-generator

module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2021 License: Apache-2.0

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

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL