PDA

View Full Version : Open PDF in a selected page? HELP


melito
10-16-2007, 08:17 AM
Hello i have a test version of autoplay 6.0 and i need to open trow a link a pdf im a selected page (example: open pdf in page 11).
I cannot do that, what code do i need to use to do that funcion?

Thks

longedge
10-16-2007, 11:36 AM
One way to do it would be to use a web object and open an html document with links in it to your pdf e.g. -

<a href="pdf.pdf#page=3">Go straight to page 3 </a>

p.s. Put the html and the pdf in the docs folder so there are no referencing problems.

Bruce
10-16-2007, 11:47 AM
http://www.indigorose.com/forums/showthread.php?t=17367&highlight=read+PDF

http://www.indigorose.com/forums/showthread.php?t=15847&highlight=read+PDF

qwerty
10-27-2007, 09:01 AM
i was looking at this the other day, but i had an extra angle ... what if the user of my project didnt have a pdf reader installed ?

so, i went and looked at FoxIt reader, there is a portable version of that, and the latest version allows command line parameters to not only open at a specified page, but it will also open it and make no changes to the systems default pdf reader setting.

so u can just use File.Run, and in the parameters specify file, page and no-default and viola, nice and easy