Skip to content

kruegge/html2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple HTML2PDF converter in golang

requirements

  • need a running headless chrome browser in a container or local on your device
  • get dependencies
  • run the code
  • have a look at the result :)

run a headless chrome

google-chrome --headless --disable-gpu --remote-debugging-port=9222

get all dependencies

go mod vendor

run programm

go run main.go

results

when everything was going right, then you have two new files in your folder named screenshot.png and page.pdf. Please have a look inside and try to modify the code or capture some things on other sites.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages