Sign inSign up

modera/print2pdf

By modera

•Updated 5 months ago
Archived

PDF generation from a url or a html page

Image
0

5.8K

modera/print2pdf repository overview

⁠Environment variables

The following environment variables are also honored for configuring your PRINT2PDF instance:

  • -e PRINT2PDF_PORT=8080 # Server port
  • -e PRINT2PDF_TIMEOUT=0 # Process timeout in seconds
  • -e PRINT2PDF_PUBLIC_KEY= # JWT public key
  • -e PRINT2PDF_LANDSCAPE=false # Landscape paper orientation
  • -e PRINT2PDF_PRINT_BACKGROUND=false # Print background graphics
  • -e PRINT2PDF_SCALE=1 # Scale of the webpage rendering
  • -e PRINT2PDF_PAPER_WIDTH=8.5 # Paper width in inches
  • -e PRINT2PDF_PAPER_HEIGHT=11 # Paper height in inches
  • -e PRINT2PDF_MARGIN_TOP=0 # Top margin in inches
  • -e PRINT2PDF_MARGIN_BOTTOM=0 # Bottom margin in inches
  • -e PRINT2PDF_MARGIN_LEFT=0 # Left margin in inches
  • -e PRINT2PDF_MARGIN_RIGHT=0 # Right margin in inches
  • -e PRINT2PDF_PREFER_CSS_PAGE_SIZE=false # Prefer page size defined by CSS
  • -e PRINT2PDF_PAGE_RANGES= # Paper ranges to print, e.g., '1-5, 8, 11-13'
  • -e PRINT2PDF_IGNORE_INVALID_PAGE_RANGES=false # Silently ignore invalid but successfully parsed page ranges, such as '3-2'
  • -e PRINT2PDF_HEADER_TEMPLATE= # HTML template for the print header
  • -e PRINT2PDF_FOOTER_TEMPLATE= # HTML template for the print footer
  • -e PRINT2PDF_DISPLAY_HEADER_FOOTER=false # Display header and footer

Tag summary

Content type

Image

Digest

sha256:db458382d…

Size

154.2 MB

Last updated

5 months ago

docker pull modera/print2pdf:0.2-20260427