Skip to content

cory-evans/html-to-pdf

Repository files navigation

html-to-pdf

docker pull ghcr.io/coryevans2324/html-to-pdf

Build the service

docker build -t ghcr.io/coryevans2324/html-to-pdf .

Run the service

docker run --rm -d \
	--name htmltopdf \
	-p 3000:3000 \
	-e JAVASCRIPT_ENABLED=false \
	ghcr.io/coryevans2324/html-to-pdf

Environment Variables

Name Description
PORT Port the express server listens on.
Default: 3000
JAVASCRIPT_ENABLED Whether javascript is enabled in the headless browser page.
Default: false
Set to true to enable JS.

Make a request to the service:

wget -O doc.pdf https://localhost:3000/?url=https://google.com

About

Service to render webpages to PDF documents

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages