Search code examples
macospdfcommand-line

how do you open a PDF at a specific page from the command line? (OSX or Linux)


I want to open a PDF document at a specific page from the command line, sort of like vim +n [file]. Is there any way to do that in OSX, with any PDF reader program?


Solution

  • You can do this with Evince using the -p or --page-label=PAGE command line argument like so:

    evince -p 5 foo.pdf