How can I run acrobat reader from the commandline with a page number specified so that it opens on the page I requested .
Thanks a lot.
Printable View
How can I run acrobat reader from the commandline with a page number specified so that it opens on the page I requested .
Thanks a lot.
What version and do you have the Full version of Acrobat?
You can use the pageNum Document Object property to make the document navigate to the nth page. You will need
the full version of Acrobat to do this. ;)
I've ver 5 and 6 . but I want to do this right from the earliest version that support it. supposing I've all the requirements , what would the commandline look like ??
It would have to be written in the document. So when it opens it will run your function to have it navigate
to a starting page 'n'.
pageNum is the actual property of the Document object. ;)
I used this commandline from run menu but it only opens the doc : "acrord32 pathxxxx.pdf" .Do you think this would accept n paramter as a page number, if yes how please ?
I searched through 5,000+ pages of pdf documentation and nada. :(
I had an idea though since you do have the full version of acrobat. You could write a small vb app to receive the command line
argument and CreateObject of an acrobat type and open the passed in pdf filepath. Then retrieve the other passed
argument of which page to display. Using acrobat "Set page = pdDoc.AcquirePage(0)" you may be able to
display the page you want.
;)