Windows

Command-line tool

rasternivo-cli uses the same conversion engine as the desktop app, for scripts and batch jobs. It runs on your computer, so nothing is uploaded.

Not available yet. The command-line tool isn't included in the desktop download, because it doesn't use your account yet. To automate conversions today, use the API.

Commands

rasternivo-cli inspect <input.pdf> [password options] [--json]
rasternivo-cli convert <input.pdf> -o <folder> [options]
rasternivo-cli version

Examples

# All pages at 150 DPI into the folder "out" (the folder must exist)
rasternivo-cli convert report.pdf -o out

# Pages 1 to 3 and 5 at 300 DPI, quality 85, plus a ZIP
rasternivo-cli convert report.pdf -o out --pages "1-3, 5" --dpi 300 --quality 85 --zip

# Replace files that already exist
rasternivo-cli convert report.pdf -o out --on-exists overwrite

# Page count and page sizes, as JSON
rasternivo-cli inspect report.pdf --json

# A protected PDF: the password comes from an environment variable
set PDF_PASSWORD=your-password
rasternivo-cli convert secret.pdf -o out --password-env PDF_PASSWORD

Convert options

OptionMeaningDefault
-o, --output <folder>Output folder, which must existRequired
--pages <spec>all, or for example "1-3, 5, 8-10" or "4-"all
--dpi <n>Resolution, 10 to 600150
--quality <n>JPEG quality, 1 to 10090
--subsampling <mode>auto, 444, 420 or grayauto
--background <RRGGBB>Colour behind transparent areasFFFFFF
--name <template>File name template{original}_page_{page_number:0001}
--on-exists <policy>fail, overwrite or renamefail
--no-annotationsLeave out annotationsIncluded
--no-formsLeave out form fieldsIncluded
--optimizeOptimised Huffman tables: smaller, slowerOff
--zipAlso package the pages as <original>.zipOff
--max-pixels <n>Limit on pixels per page100000000
--page-timeout <sec>Time limit per page120
--jsonMachine-readable result on standard outputOff
--statsInclude timing and memory statisticsOff
--quietNo progress outputOff

Passwords

Never pass a password as an argument, because other programs on the computer could see it. Use one of these:

OptionReads the password from
--password-stdinThe first line of standard input
--password-env <NAME>The environment variable NAME