Skip to content
/ latte Public
forked from raphaelreyna/latte

Generate PDFs using LaTeX templates and JSON

License

Notifications You must be signed in to change notification settings

doc22940/latte

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latte

Generate PDFs using LaTeX templates and JSON

How to use

Latte starts an HTTP server and listens on port 27182 by default at the endpoint /generate. Example POST request JSON body:

{
  "template": <BASE64 ENCODED .tex FILE>,
  "resources": {
    "image1.png": <BASE64 ENCODED RESOURCE FILE>
   },
   "details": {
    "CustomerName": "John Doe",
    "Phone": "555-555-5555"
   }
}

The template .tex file should be a template that follows Go's templating syntax

Roadmap

  • Registering templates and resources.
  • Add support for AWS S3, PostrgeSQL, and possibly other forms of persistent storage.
  • CLI tool.
  • Add support for building PDFs from multiple LaTeX files.
  • Whatever else comes up

About

Generate PDFs using LaTeX templates and JSON

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 97.9%
  • Dockerfile 2.1%