Converts any URL or HTML content to a PDF file or an image (PNG/JPEG)
99
Web page PDF rendering done right. Microservice for rendering receipts, invoices, or any content. Packaged to an easy API.
⚠️ WARNING ⚠️ *Don't serve this API publicly to the internet unless you are aware of the risks. It allows API users to run any JavaScript code inside a Chrome session on the server.It's fairly easy to expose the contents of files on the server. You have been warned!.
x-api-key authentication. (API_TOKENS env var)Usage is as simple as http://192.168.32.197:2090/api/render?url=http://google.com. There's also a POST /api/render if you prefer to send options in the body.
sudo docker run -d --name urltopdf \
-p 2090:9000 \
-m 500M --memory-swap=550M \
--restart=always \
-e ALLOW_HTTP=true \
-e DEBUG_MODE=false \
-e DISABLE_HTML_INPUT=false \
-e API_TOKENS=123456 \
venlentine/urltopdf:v1.0.0
Environment variables:
| Name | Default | Accepted | Description |
|---|---|---|---|
| DEBUG_MODE | false | ||
| ALLOW_HTTP | false | ||
| DISABLE_HTML_INPUT | false | ||
| API_TOKENS | x-api-key |
...
Content type
Image
Digest
sha256:2b69d4f95…
Size
451.1 MB
Last updated
almost 2 years ago
docker pull venlentine/urltopdf:v1.0.0