For command-line arguments for the installer see this page.
You can launch Sumatra with additional command-line options: SumatraPDF.exe [argument ...] [filepath ...]
.
All arguments start with dash (-). Some arguments are followed by additional parameter.
Anything that is not recognized as a known option is interpreted as a file path so it's possible to mix file paths and command-line arguments.
-presentation
: start in presentation view-fullscreen
: start in full screen view-new-window
: when opening a file, always open it in a new window, as opposed to in a tab (since 3.2)-appdata <directory>
: set custom directory where we'll store SumatraPDF-settings.txt
file and thumbnail cache-restrict
: runs in restricted mode where you can disable features that require access to file system, registry and the internet. Useful for kiosk-like usage. Read more detailed documentation.-named-dest <destination-name>
: searches the first indicated file for a destination or a table-of-contents entry (or starting with version 3.1 also a page label) matching destination-name and scrolls the document to it. Combine with -reuse-instance if the document is already open.
-page <pageNo>
: scrolls the first indicated file to the indicated page. Combine with -reuse-instance if the document is already open.
-view <view-mode>
: set view mode for the first indicated file. Available view modes:
"single page"
"continuous single page"
facing
"continuous facing"
"book view"
"continuous book view"
Notice that options with space have to be surrounded by "" quotes.
Combine with -reuse-instance
if the document is already open.
-zoom <zoom-level>
: Sets the zoom level for the first indicated file. Alternatives are "fit page", "fit width", "fit content" or any percentage value. Combine with -reuse-instance if the document is already open.
-scroll <x,y>
: Scrolls to the given coordinates for the first indicated file. Combine with -reuse-instance
if the document is already open.
-print-to-default
: prints all files indicated on this command line to the system default printer. After printing, SumatraPDF exits immediately (check the error code for failure).