Prince XML image to convert HTML to PDF
1.5K
Prince is a great tool that converts HTML to PDF with support of CSS print features that no browser supports for now (eg. page number generation, specific content for odd or even pages, and other @page content).
docker run --rm \
-v "`pwd`":/data \
michaelperrin/prince:latest \
-o /data/test.pdf \
/data/index.html
# docker-compose.yml
version: '3'
services:
prince:
image: michaelperrin/prince:latest
volumes:
- .:/data
Run:
docker-compose run --rm prince \
-o /data/test.pdf \
/data/index.html
Content type
Image
Digest
Size
28.2 MB
Last updated
about 5 years ago
docker pull michaelperrin/prince