Skip to content

abdollahpour/micro-pdf-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/main/docs/template.html" \
  -F data="https://raw.githubusercontent.com/abdollahpour/micro-pdf-generator/main/docs/data.json" \
   https://micro-pdf-generator.abdollahpour.com/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

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published