Skip to content

michaelperrin/docker-prince

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Prince XML Docker image

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).

Usage example

docker run --rm \
    -v "`pwd`":/data \
    michaelperrin/prince:latest \
    -o /data/test.pdf \
    /data/index.html

Using Docker Compose

# 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

About

Docker image for Prince XML

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •