Edit this page
View source of this page
CLI reference
CLI Reference
pdf-remote-converter --help
Commands
convert
Convert a document to PDF.
pdf-remote-converter convert [ OPTIONS] INPUT_FILE OUTPUT_FILE
Arguments
Argument
Description
INPUT_FILE
Path to the input Office file to convert (e.g., input.docx).
OUTPUT_FILE
Path to the output PDF file (e.g., output.pdf).
Both arguments are positional-only: they must be passed as arguments, not as
--input-file / --output-file options.
Options
Option
Description
--provider, -p
Use a specific provider (cloudconvert, adobe, apyhub, google_drive, zamzar).
--api-key
API key for the provider. Overrides the environment variable for this run.
--force, --no-force
Force a fresh conversion, bypassing the HTTP cache. Defaults to --no-force.
--verbose, -v
Enable verbose (debug) logging.
--help
Show the command help and exit.
Global Options
Option
Description
--version, -v
Show the version and exit.
--install-completion
Install shell completion for the current shell.
--show-completion
Show the completion script for the current shell, to copy or customize it.
--help, -h
Show the help and exit.
Exit Codes
Code
Meaning
0
Success (or help/version output).
1
Conversion failed: no provider is configured, the requested provider is not configured, or every provider failed.
2
Usage error: unknown option or missing argument.
Examples
# Use the default configured provider
pdf-remote-converter convert input.docx output.pdf
# Pick a provider explicitly
pdf-remote-converter convert --provider adobe input.pptx output.pdf
# Pass the API key for a single run
pdf-remote-converter convert --api-key YOUR_KEY --provider zamzar input.docx output.pdf
# Bypass the HTTP cache and log verbosely
pdf-remote-converter convert --force --verbose input.docx output.pdf