link to particular page of pdf file?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
labrat
Posts: 32
Joined: Mon Dec 29, 2014 6:17 pm

link to particular page of pdf file?

Post by labrat » Tue Jan 27, 2015 4:57 am

I want to link to a particular page of a pdf file. This link: http://blogs.adobe.com/tcs/2011/01/tcs- ... -more.html says that all I need to do is append #page=3 (for example) to accomplish this. However, it does not work. I can launch the document with this code:

Code: Select all

on mouseUp
   launch document "/Users/erv/Documents/shannon1948.pdf"
end mouseUp
but nothing happens when I use this code:

Code: Select all

on mouseUp
   launch document "/Users/erv/Documents/shannon1948.pdf#page=3"
end mouseUp
How can I do it?

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: link to particular page of pdf file?

Post by FourthWorld » Tue Jan 27, 2015 5:39 am

The path suggests you're using a Mac, yes? If so, perhaps OS X's Preview app doesn't offer the same support for the hash page number as Adobe's PDF reader does. FWIW, the Evince Document Viewer which ships with Ubuntu doesn't seem to honor that Adobe convention either.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply