Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open a .PDF on a given page from the "command-line"?

Status
Not open for further replies.

tamayok

Programmer
Sep 4, 2001
99
PR
I need to be able to open a PDF document on a given page from another application (FoxPro).

By passing something like this:

C:\Acrobat.EXE C:\MyDoc.PDF Page12

Anyone knows if this is possible?

Thanks!
 
If you index the file, you can open the file using the index from a command line. (i.e. c:\temp\acrobat.exe /12).

For Further reference check Adobe SDK & Command Line Options.
 
Thanks for your reply VBDave! I tried your suggestion but was not successful. Probably I am missing a step.

This is what I did:

(1) Launched Adobe Writer.
(2) Opened the PDF that I want to be able on any given page from the command line.
(3) Selected "Tools" > "Catalog..." > "New Index" > "Build"
This resulted in several files and sub-folders, including a .PDX.
(4) At the MS-DOS prompt, I positioned myself at the folder where the indexed PDF exists.
(5) Launched C:\Path2\Acrobat.EXE MyDoc.PDF /5 and many variations of the same without any luck.

Please help if you can!

Kenneth
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top