Skip to content

MatheusVict/pdfGenarator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

PDF-Generator-Golang

This is a pdf generator made in golang, that uses html template to generate custom pdfs

Used Technologies

Dependencies and required versions

  • wkHtmlToPdf - Version: 1.9.2
  • uuid - Version: 1.4.0

How to run

go mod tidy

and then

go run *.go

After that you will see on the tmp directory your pdfs

How change pdf

you need to change html file in templates/example.html

where you want to make a dynamic data you'll need to put {{.VariableName}}, and change the Data struct in main.go or create your own

Faced troubles

Problem 1:

no command on start application

  • Make sure you have wkHtmlToPdf installed or run it for your shell.

Next steps

Make this project a go package

About

๐Ÿ“™ pdf generator with golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published