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

**URL:** <https://forum.obsidian.md/t/open-pdf-in-default-app-at-specific-page-pass-cli-command-to-uri/33390>\
**Category:** Feature requests\
**Tags:** pdf-viewer\
**Created:** [March 3, 2022, 11:30am UTC](https://forum.obsidian.md/t/open-pdf-in-default-app-at-specific-page-pass-cli-command-to-uri/33390 "2022-03-03T11:30:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JamesKF](https://forum.obsidian.md/user_avatar/forum.obsidian.md/jameskf/32/24490_2.png) [@JamesKF](https://forum.obsidian.md/u/JamesKF)\
**Post date:** [March 3, 2022, 11:30am UTC](https://forum.obsidian.md/t/open-pdf-in-default-app-at-specific-page-pass-cli-command-to-uri/33390/1 "2022-03-03T11:30:09Z")

</div>

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](https://forum.obsidian.md/uploads/default/original/3X/f/3/f36466ac457838047c7fc1667bcf3f248e5371c0.png)

It would be great if URI supported such links :

```nohighlight
[[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 !

---

<div class="post-metadata">

**Author:** ![obsequious](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/o/4af34b/32.png) [@obsequious](https://forum.obsidian.md/u/obsequious)\
**Post date:** [July 29, 2022, 8:20am UTC](https://forum.obsidian.md/t/open-pdf-in-default-app-at-specific-page-pass-cli-command-to-uri/33390/2 "2022-07-29T08:20:45Z")

</div>

This plugin [GitHub - phibr0/obsidian-open-with](https://github.com/phibr0/obsidian-open-with) can do it

---

<div class="post-metadata">

**Author:** ![voltel](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/v/ecb155/32.png) [@voltel](https://forum.obsidian.md/u/voltel)\
**Post date:** [November 1, 2023, 10:38pm UTC](https://forum.obsidian.md/t/open-pdf-in-default-app-at-specific-page-pass-cli-command-to-uri/33390/3 "2023-11-01T22:38:02Z")

</div>

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](https://support.microsoft.com/en-us/office/command-line-switches-for-microsoft-office-products-079164cd-4ef5-4178-b235-441737deb3a6#Category=PowerPoint) or [here](https://www.officeoneonline.com/pptfaq/ppt_cmdline.html). So, passing command-line arguments from Obsidian would help to solve this task.
