start-pdf-viewer

This task starts a PDF viewer with a file to show in it. The file can be set with file.

-h | --help        print help screen and exit
-f | --file FILE   PDF file to open in reader

The task will test if the file is readable, and throw an error if not. It will also use a system specific path if required (for instance on Cygwin).

Requirements

The actual command for starting a PDF viewer must be provided in PDF_VIEWER. If this parameter is not set, the task will print an error and exit. Examples for setting PDF_VIEWER are:

  • acrobat: acrobat %FILE%

  • evince: evince %FILE%

More information on the parameter PDF_VIEWER can be found in the framework manual.