Command Line Interface

PlutoPrint includes a command-line tool plutoprint for quick conversions without writing Python scripts.

Usage

plutoprint [options] INPUT OUTPUT

Arguments:

  • INPUT: Input HTML filename or URL.
  • OUTPUT: Output PDF filename.

Options

Page Configuration

  • --size: Page size (e.g., a4, letter, legal, a3, b5).
  • --orientation: portrait (default) or landscape.
  • --width: Custom width (e.g., 210mm, 8.5in).
  • --height: Custom height.
  • --margin: Set equal margins on all sides (e.g., 72pt, 1cm).
  • --media: Media type for CSS resolution: print (default) or screen.

Specific Margins

  • --margin-top
  • --margin-right
  • --margin-bottom
  • --margin-left

Page Ranges

  • --page-start: Starting page number.
  • --page-end: Ending page number.
  • --page-step: Step value (e.g., 2 for every other page).

Content Injection

  • --user-style: String of CSS to inject.
  • --user-script: String of JavaScript to run.

Metadata

  • --title
  • --subject
  • --author
  • --keywords
  • --creator

Network / SSL

  • --no-ssl: Disable SSL verification (unsafe).
  • --no-redirects: Do not follow HTTP redirects.
  • --timeout: HTTP timeout in seconds.
  • --ssl-cainfo: Path to CA certificate file.
  • --ssl-capath: Path to CA certificate directory.

Information

  • --version: Show version.
  • --info: Show detailed build information (dependencies, compiler, etc).