Here is the version that is dynamically equipt to handle any pdf you provide to it. Here is a video showing what it solves for us and demonstrating some of its mechanism.
video
video
str pdfPage pdfPath pdfName n f p
n="C:\fmUtil\pdfName.txt"
f="C:\fmUtil\pdfPath.txt"
p="C:\fmUtil\pdfPage.txt"
pdfName.getfile(n)
pdfPath.getfile(f)
pdfPage.getfile(p)
out pdfName
out pdfPath
out pdfPage
int w1=win(F"{pdfName}" "AcrobatSDIWindow")
if (!w1)
,run F"{pdfPath}"
,int w3=wait(19 win(F"{pdfName}" "AcrobatSDIWindow"))
,'CSn ;; Ctrl+Shift+N
,int w4=wait(19 win("Go To Page" "#32770"))
,'F"{pdfPage}" Y ;; Enter
,
else
,
,act w1
,
,'CSn ;; Ctrl+Shift+N
,int w2=wait(19 win("Go To Page" "#32770"))
,'F"{pdfPage}" Y ;; Enter