Skip to content

theterminalguy/wkhtmltopdf-golang-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wkhtmltopdf-golang-docker

This repo demonstrates how to use wkhtmltopdf to convert an HTML page to a PDF file. The code is written in Go and uses a golang wrapper for wkhtmltopdf.

This is a production ready example. Feel free to use it in your own projects.

Running locally

First, clone this repo

git clone https://github.com/theterminalguy/wkhtmltopdf-golang-docker

Next, build the image with

docker build -t wkhtmltopdf-golang-docker .

You can then run the image locally with

docker run -p 3000:3000 --env PORT=3000 --rm wkhtmltopdf-golang-docker:latest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages