how to read an specific page into pdf document?
livfoss at mac.com
Sun Oct 16 12:33:18 EDT 2011
David, this is really interesting. Where does the PDF page appear? I mean is it in a stack window, and could it be manipulated by a LiveCode program? My guess is that this is what Alessandro was aiming at. I don't quite understand what's happening in this script. Also, in your case do you need to check if the user has actually got a copy of Adobe Reader installed? Looks like this method only works if you know not only that it's installed but exactly which version it is. Maybe in your context this isn't an issue - can you comment?
On Sat, 15 Oct 2011 09:44:12 -0500, "David C." <davidocoker at gmail.com> wrote:
> Alessandro Pisoni wrote:
>>>> how can I do to read a page in a pdf file with Revolution, which syntax
>>> should I use?
> This works on my end, (64 bit Windows 7):
> on mouseUp
> set the defaultFolder to "C:\Program Files (x86)\Adobe\Reader 10.0\Reader\"
> put "AcroRd32.exe" & " /a page=10=openactions
> C:\TargetDocumentName.pdf" into tCommand
> set the hideConsoleWindows to true
> get shell (tCommand)
> -- reset the default folder location back as it was if required
> set the defaultFolder to specialFolderPath("home")
> end mouseUp
> Best regards,
> David C.
More information about the Use-livecode