Re: Displaying PDF files in an LC stack
Hi from Beautiful Brittany, For Pete, Michael, Colin . et alia ! I think we have been down this road before ! This is not a completely internal display of pdf files within a LiveCode stack, but it's the closest I could get, and it solves all my needs. I have a library of pdf files. I have a LiveCode stack containing a card for each of the files I may want to display. On each card, I have 1 - The pdf file name within my library, 2 - A display scale value for the pdf file, 3 - a field containing a list of page numbers that may interest me, within the pdf file. I select the scale, select a page number and open the pdf file, at a specific page, in an external window, by building an applescript file to call the Skim app with the required parameters. Warning : Skim is for Macs only ... Life is so hard ! NOTE : I have not exploited the potential of all possible parameters which can be passed to Skim. I also found out that if my pdf file originated as a text file (first-hand), then I could eventually dig out the text, (which means that pdf display COULD be pure LiveCode) but if the pdf file was built (for example) by conversion from a jpg file, then I could NEVER recover the text. (that seems pretty reasonable, does it not ?) Catch me off-forum, and I can send you an example stack. Best Regards -Francis Nothing should ever be done for the first time ! ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Displaying PDF files in an LC stack
Thanks Francis - and all the others who have suggested ways to deal with this. I think I will have to go with launching the pdf documents as a separate process. Seems like that is the only way to get a cross platform solution that will deal with the display of bookmarks without having to spend time writing Livecode scripts. Maybe someone will write an LC plugin to deal with pdf files one day. Judging by the response to my initilial question, seems like there would be enough interest to make it worthwhile. Pete PS I'm still looking at ScreenSteps. They confirm that bookmarks are included in pdf files created from ScreenSteps so I could get the best of both worlds. On Mon, Mar 26, 2012 at 9:31 AM, Francis Nugent Dixon effe...@wanadoo.frwrote: Hi from Beautiful Brittany, For Pete, Michael, Colin . et alia ! I think we have been down this road before ! This is not a completely internal display of pdf files within a LiveCode stack, but it's the closest I could get, and it solves all my needs. I have a library of pdf files. I have a LiveCode stack containing a card for each of the files I may want to display. On each card, I have 1 - The pdf file name within my library, 2 - A display scale value for the pdf file, 3 - a field containing a list of page numbers that may interest me, within the pdf file. I select the scale, select a page number and open the pdf file, at a specific page, in an external window, by building an applescript file to call the Skim app with the required parameters. Warning : Skim is for Macs only ... Life is so hard ! NOTE : I have not exploited the potential of all possible parameters which can be passed to Skim. I also found out that if my pdf file originated as a text file (first-hand), then I could eventually dig out the text, (which means that pdf display COULD be pure LiveCode) but if the pdf file was built (for example) by conversion from a jpg file, then I could NEVER recover the text. (that seems pretty reasonable, does it not ?) Catch me off-forum, and I can send you an example stack. Best Regards -Francis Nothing should ever be done for the first time ! __**_ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode -- Pete Molly's Revenge http://www.mollysrevenge.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Displaying PDF files in an LC stack
Are there controls in the player object to manage the positioning of the pdf pages. This is news to me, where can I learn more? -= Mike On Mar 24, 2012, at 9:20 PM, Pete wrote: Thanks for the reminder Colin, forgot about that. I'll give that a try. Pete On Sat, Mar 24, 2012 at 6:05 PM, Colin Holgate co...@verizon.net wrote: I don't remember that part. My suggestion was to read the PDF in a player object, by setting its filename property. On Mar 24, 2012, at 8:11 PM, Pete wrote: In another thread, I've been soliciting advice about tools to use for Help Text preparation and display. One of the options was to go with a pdf file and display it using revBrowser. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Pete Molly's Revenge http://www.mollysrevenge.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Displaying PDF files in an LC stack
By positioning, do you mean x and y position? Or do you mean which page is showing? In my suggestion I had proposed that you would set the currenttime of the player to navigate through the pages. On Mar 25, 2012, at 11:06 AM, Michael Doub wrote: Are there controls in the player object to manage the positioning of the pdf pages. This is news to me, where can I learn more? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Displaying PDF files in an LC stack
Hi Michael, Am 25.03.2012 um 17:06 schrieb Michael Doub: hint: PDFs are only displayed in a player object on the Mac! Are there controls in the player object to manage the positioning of the pdf pages. No, they are treated like a video and you cannot control them properly if at all. This is news to me, where can I learn more? Nowhere, this is just some kind of accident that the Mac player can display PDFs :-) To have a truly crossplatform solution you should use the Browser object and use that to display PDF files. And even if you want this Mac only is the browser a better solution! I have an example stack that I can send you if you like! -= Mike Best Klaus -- Klaus Major http://www.major-k.de kl...@major.on-rev.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
DIsplaying PDF files in an LC stack
A quick and dirty way to display PDFs in an LC stack is to create an image of each PDF page and insert each into an LC Image Area You might also make use of the Marked Card feature for bookmarking. Steve Goldberg www.medmaster.net stgoldb...@aol.com Date: Sat, 24 Mar 2012 17:11:06 -0700 From: Pete p...@mollysrevenge.com To: How to use LiveCode use-livecode@lists.runrev.com Subject: Displaying PDF files in an LC stack Message-ID: cabx6j9mpd2s5ed+wp_qatpttudwh_ttjnw-jtp7uaz-kbje...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 In another thread, I've been soliciting advice about tools to use for Help Text preparation and display. One of the options was to go with a pdf file and display it using revBrowser. Been having some issues getting that to work but even if it did work, I don't think it will satisfy my needs. I want to use the pdf feature of showing bookmarks in a navigation pane (like the datagrid manual) and apparently that won't happen, at least on a Mac. I could, of course, simply launch the pdf file as a separate process but I'd really like to keep the help file within my LC stack if possible. Are there any other ways of displaying a pdf file within LC other than using revBrowser? I though I remembered seeing some sort of plugin but a quick search didn't come up with anything. I am still looking into ScreenSteps and WordLib. -- Pete Molly's Revenge http://www.mollysrevenge.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Displaying PDF files in an LC stack
In another thread, I've been soliciting advice about tools to use for Help Text preparation and display. One of the options was to go with a pdf file and display it using revBrowser. Been having some issues getting that to work but even if it did work, I don't think it will satisfy my needs. I want to use the pdf feature of showing bookmarks in a navigation pane (like the datagrid manual) and apparently that won't happen, at least on a Mac. I could, of course, simply launch the pdf file as a separate process but I'd really like to keep the help file within my LC stack if possible. Are there any other ways of displaying a pdf file within LC other than using revBrowser? I though I remembered seeing some sort of plugin but a quick search didn't come up with anything. I am still looking into ScreenSteps and WordLib. -- Pete Molly's Revenge http://www.mollysrevenge.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: Displaying PDF files in an LC stack
I've been looking for a way to display PDFs in LC in a mobile app. The browser window is not even an option for Android because the Android browser will not render PDFs natively. I have not tried iOS yet but I am told that Safari can render a PDF. Then there's the java support. That's another can of worms. The PDF spec is like 6,000 pages. Adobe has an SDKs for rendering PDFs on both Android and iOS. With an external for each mobile platforms it might be possible to render and support interactive PDFs for mobile. For desktop Adobe also has free SDKs. Just a thought.. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Pete Sent: Saturday, March 24, 2012 8:11 PM To: How to use LiveCode Subject: Displaying PDF files in an LC stack In another thread, I've been soliciting advice about tools to use for Help Text preparation and display. One of the options was to go with a pdf file and display it using revBrowser. Been having some issues getting that to work but even if it did work, I don't think it will satisfy my needs. I want to use the pdf feature of showing bookmarks in a navigation pane (like the datagrid manual) and apparently that won't happen, at least on a Mac. I could, of course, simply launch the pdf file as a separate process but I'd really like to keep the help file within my LC stack if possible. Are there any other ways of displaying a pdf file within LC other than using revBrowser? I though I remembered seeing some sort of plugin but a quick search didn't come up with anything. I am still looking into ScreenSteps and WordLib. -- Pete Molly's Revenge http://www.mollysrevenge.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Displaying PDF files in an LC stack
I don't remember that part. My suggestion was to read the PDF in a player object, by setting its filename property. On Mar 24, 2012, at 8:11 PM, Pete wrote: In another thread, I've been soliciting advice about tools to use for Help Text preparation and display. One of the options was to go with a pdf file and display it using revBrowser. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Displaying PDF files in an LC stack
Thanks for the reminder Colin, forgot about that. I'll give that a try. Pete On Sat, Mar 24, 2012 at 6:05 PM, Colin Holgate co...@verizon.net wrote: I don't remember that part. My suggestion was to read the PDF in a player object, by setting its filename property. On Mar 24, 2012, at 8:11 PM, Pete wrote: In another thread, I've been soliciting advice about tools to use for Help Text preparation and display. One of the options was to go with a pdf file and display it using revBrowser. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Pete Molly's Revenge http://www.mollysrevenge.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode