Created
March 28, 2021 16:04
-
-
Save qqobb/e66e0f354b875f3a27fcc8a4a856027d to your computer and use it in GitHub Desktop.
Open a PDF file at a specific page in MS Edge using Acrobat's command-line syntax.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Name : acro2edge.cmd | |
:: Purpose : Open a PDF file at a specific page in MS Edge using Acrobat's command-line syntax. | |
:: Details : CMD batch script for Windows, tested on Windows 10. | |
:: Example : acro2edge.cmd /A page=3 "C:\...\file.pdf" | |
@ECHO OFF | |
SETLOCAL ENABLEEXTENSIONS | |
SET edgepath=C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe | |
IF /I "%~1"=="/A" ( | |
START "" "%edgepath%" "file:///%~4#%~2=%~3" | |
) ELSE ( | |
START "" "%edgepath%" %* | |
) | |
EXIT /B |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use case: custom PDF viewer for Zotero, see here:
https://forums.zotero.org/discussion/88586/unable-to-open-zotero-link-to-pdf-with-page-number-in-microsoft-edge-chromium