Open PDF in default app at specific page (= pass CLI command to URI)?

Hello,

I have a PDF reader that accepts a --page i option in command line (where i is a page number) : Is there any way to pass that option to my PDF reader when using Obsidian’s Open with default app ?

image

It would be great if URI supported such links :

[[docName.pdf#commandName]]

Where instead of commandName we could write /A page=3 or --page=3 (different PDF readers have different CLI arguments to open at specific page). Obsidian would just have to pass that argument to the console.

Thanks !

2 Likes

This plugin GitHub - phibr0/obsidian-open-with can do it

Can we revisit this thread? I have a similar request. I need to open PowerPoint presentation as a slideshow. For that, I could use the command-line switch “/S”, as described here or here. So, passing command-line arguments from Obsidian would help to solve this task.