Available in pre-release 3.7
You can run sumatrapdf-tool.exe <tool> or SumatraPDF.exe to perform operations on PDF and other files. Both work with the portable EXE; no install required.

sumatrapdf-tool.exe vs. SumatraPDF.exe #

When you install SumatraPDF, we also install sumatrapdf-tool.exe and add it to PATH.
sumatrapdf-tool.exe is a console program that provides command-line access to many of SumatraPDF’s features.
It’s meant for use from the command line or from scripts.
The same commands work with the portable EXE as SumatraPDF.exe <tool> — no install and no extra extract. You can also extract sumatrapdf-tool.exe with -x if you want the console binary.
The difference is that SumatraPDF.exe is a GUI application, so it won’t work as well when, for example, redirecting output to a file or running from scripts.

I want to… #

Goal Tool / doc
Delete specific pages cleanDelete pages from PDF
Delete the last page without knowing the count clean input.pdf out.pdf 1-N-1 (N = last page)
Extract pages into a new PDF cleanExtract pages from PDF
Merge PDFs mergeTool merge
Search text in one or many PDFs grepTool grep
Extract plain text draw -tt or grepExtract text from PDF
Extract embedded images extractExtract images from PDF
Compress / rewrite PDF cleanCompress a PDF
Remove compression streams cleanDecompress a PDF
Password-protect a PDF cleanEncrypt a PDF
Remove password cleanDecrypt a PDF
Convert images / other formats to PDF convert / drawTool convert; GUI for comics/images: Convert to PDF
Inspect PDF structure info, show, pagesTool info
Run JavaScript on PDFs runTool run
The same page-delete operations are also available in the app: Ctrl + KDelete Pages From PDF, or context menu Document → Delete Pages From PDF.
sumatrapdf-tool.exe <command> [options]
  draw    -- convert document
  convert -- convert document (with simpler options)
  audit   -- produce usage stats from PDF files
  bake    -- bake PDF form into static content
  clean   -- rewrite PDF file
  create  -- create PDF document
  extract -- extract font and image resources
  info    -- show information about PDF resources
  merge   -- merge pages from multiple PDF sources into a new PDF
  pages   -- show information about PDF pages
  poster  -- split large PDF page into many tiles
  recolor -- change colorspace of PDF document
  show    -- show internal PDF objects
  trim    -- trim PDF page contents
  grep    -- search for text
  trace   -- trace device calls
  run     -- run a MuPDF JavaScript program
Tools: