Mike, thank you very much for the links. I will have a look tomorrow.
Matthias Rebbe free tools for Livecoders: https://instamaker.dermattes.de <https://instamaker.dermattes.de/> https://winsignhelper.dermattes.de <https://winsignhelper.dermattes.de/> > Am 05.05.2019 um 22:46 schrieb Mike Kerner via use-livecode > <use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>>: > > Matthais, > I'm using xpdf, and I have a couple repos with it working. > https://github.com/macMikey/xpdf <https://github.com/macMikey/xpdf> > https://github.com/macMikey/scanhammer > > On Fri, May 3, 2019 at 3:50 PM Matthias Rebbe via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> Thanks Paul, >> >> for whatever reason it still does not work. I´ve found a sample stack >> XPDF.livecode in the Livecode bundle in >> LiveCode Business 9.0.4 (rc 2).app/Contents/Tools/Ext/XPDF-1.0.31 >> >> The sample stack works, so it´s my code and i might be missing something. >> Unfortunately the script of the sample stack is very detailed, but anyway >> it´s working and i just have to dig through the sample script to see how it >> is correctly done. >> >> Regards, >> >> Matthias Rebbe >> >>> Am 03.05.2019 um 19:50 schrieb Paul Dupuis via use-livecode < >> use-livecode@lists.runrev.com>: >>> >>> I looked at my working code. >>> >>> Every where I set the rect, I do so by: >>> >>> XPDFViewer_Set "pdfViewer","RECT", rect of grc "pdfRect" of grp >> "pdfViewer" of me >>> >>> where the graphic "pdfRect is a rectangle that is used to to map the >> area the pdf viewer appears in. >>> >>> Try creating a graphic called whatever you want. Set the rect of it to >> 100,100,500,500 and then >>> >>> XPDFViewer_Set "pdfviewer", "rect", rect of graphic <whateverUcalledIt> >>> >>> >>> >>> >>> On 5/3/2019 1:39 PM, Matthias Rebbe via use-livecode wrote: >>>> Hi, >>>> >>>> i am using the following script to open a selected PDF file in the xpdf >> viewer, but i am not successful. >>>> >>>> answer file "PDF..." >>>> >>>> if it is empty then exit top >>>> >>>> put it into tFilename >>>> >>>> XPDFViewer_Open "pdfviewer", the windowID of this stack >>>> >>>> XPDFViewer_Set "pdfviewer", "filename",tFilename >>>> >>>> XPDFViewer_Set "pdfviewer", "rect", (100,100,500,500) >>>> >>>> XPDFViewer_Set "pdfviewer", "visible", TRUE >>>> >>>> put xpdfviewer_Get("pdfviewer","rect") >>>> >>>> >>>> The PDF viewer does not show up and the function pxdfviewer_get gives >> 0,0,0,0 back for the rect. >>>> >>>> Is there something wrong with my script? >>>> Or does anyone have working sample stack? >>>> >>>> Regards, >>>> >>>> Matthias Rebbe >>>> >>>> _______________________________________________ >>>> 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 >> >> >> _______________________________________________ >> 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 > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > 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