You can control SumatraPDF with DDE commands.
They are mostly used to use SumatraPDF as a preview tool from e.g. LaTeX editors that generate PDF files.

Format of DDE comands #

Single DDE command: [Command(parameter1, parameter2, ..., )]
Multiple DDE commands: [Command1(parameter1, parameter2, ..., )][Command2(...)][...]

Sending DDE commands #

You can either use windows api by sending DDE commands to server SUMATRA and topic control. See this code for example of sending DDE command.
Or you can use -dde command-line argument to SumatraPDF.exe e.g. SumatraPDF.exe -dde "[SetView(\"c:\\file.pdf\",\"continuous\",-3)]".
Notice escaping of DDE command string: " and \ with \.

List of DDE commands: #

Named commands #

*Ver 3.5+**: you can send all named commands as DDE:

Open file #

Jump to named destination command #

Go to page #

Set view settings #


edit