Open PDF to a specific page from a button

Open PDF to a specific page from a button

David_Prontnicki
Collaborator Collaborator
868 Views
3 Replies
Message 1 of 4

Open PDF to a specific page from a button

David_Prontnicki
Collaborator
Collaborator

Hi everyone,

 

Was looking for some help with this. I would like my button to open a pdf to a specific page that is on the intranet. I can get it to open the pdf with the code below:

 

^C^C^P(progn (startapp "explorer" "http://intranet/media/cadd/1000/CADD%20Standards.pdf") (princ)) ^P

I have tried adding #page=6 to the end with no luck:

 

^C^C^P(progn (startapp "explorer" "http://intranet/media/cadd/1000/CADD%20Standards.pdf#page=6") (princ)) ^P

Does anyone know how to do this with out writing a LiSP?

 

Thanks!!

0 Likes
869 Views
3 Replies
Replies (3)
Message 2 of 4

JTBWorld
Advisor
Advisor
See if this works: https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/open-pdf-to-a-specific-page-from-a-b...

Jimmy Bergmark
JTB World - Software development and consulting for CAD and license usage reports
https://jtbworld.com

0 Likes
Message 3 of 4

David_Prontnicki
Collaborator
Collaborator
Thanks jtbworld,

But I was looking to see if it could be done without lisp. If I have to I will but would prefer not to.
0 Likes
Message 4 of 4

cadffm
Consultant
Consultant

Check the link again, please.

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/open-pdf-to-a-specific-page-from-a-b...

 

The content of that (command ...) is nothing else what you can type-in your commandline or use them as menumacro.

 

 

and as joselggalan wrote: It is a question of your pdf-viewer IF and how you can do this.

For my PDF-Xchange it is possible with the same syntax!

Start PDFXEdit /A Page=1 D:/123.pdf
Start PDFXEdit /A Page=2 D:/123.pdf
Start PDFXEdit /A Page=3 D:/123.pdf

...

 

But START (defined in your *.pgp file) is only available in fullversions and in fullversions you can use Lisp,

so why not lisp? No matter why, now you have received the answer exactly without Lisp again.


Sebastian

0 Likes