Re: Browser widget and PDFs
I thing there is an Open With option likw Wndows has. Try right clicking apdf and see if you can see an always open with option. Bob S > On Nov 22, 2018, at 08:53 , Tore Nilsen via use-livecode > wrote: > > I have come across a puzzling phenomenon in how the browser widget handles > pdfs. On my iMac I do no have Adobe Reader or Adobe Acrobat installed. Here, > the browser widget displays pdf-files without any hiccups. On my MacBook I > have Adobe Acrobat installed, and the browser widget seems to use Adobe > Acrobat to display pdf-files inside the widget. When I remove Adobe Acrobat > from the application folder, trying to view a pdf-file in the browser widget > will prompt me to locate either Adobe Acrobat or Adobe Reader. > > Are there any way I can «force» the widget to ignore Acrobat or Reader > entirely, and will I be able to view pdf-files in the widget on bothMac and > Windows if I do so? > > > Best Regards > Tore Nilsen ___ 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: Browser widget and PDFs
Thank you all for your responses, they helped me solve the problem for my part. It is indeed the Adobe web Plugin that is the key to this. Although I have never checked that I would like to use this plugin, it seems as if just launching Acrobat will do this automatically. In the Acrobat preferences the check button for this is set to true, and the button is disabled. I ended up removing Acrobat from the system, but I could probably have followed Hermans advice and just remove the plugin from the Internet plains folder. Now I have to ask my student to do the same in order to have the pdf-files displayed without all the bells and whistles provided by the plugin. Best regards Tore Nilsen > 22. nov. 2018 kl. 18:06 skrev Klaus major-k via use-livecode > : > > Hi Tore, > >> Am 22.11.2018 um 18:01 schrieb Tore Nilsen via use-livecode >> : >> I don’t think so, as the default app is set to be Preview on both machines. >> In fact I had forgot I had Acrobat installed on my laptop. >> Tore Nilsen >>> Could this be related to the default app that handles PDF on your Mac? >>> Thanks, >>> Brian I have come across a puzzling phenomenon in how the browser widget handles pdfs. On my iMac I do no have Adobe Reader or Adobe Acrobat installed. Here, the browser widget displays pdf-files without any hiccups. On my MacBook I have Adobe Acrobat installed, and the browser widget seems to use Adobe Acrobat to display pdf-files inside the widget. When I remove Adobe Acrobat from the application folder, trying to view a pdf-file in the browser widget will prompt me to locate either Adobe Acrobat or Adobe Reader. Are there any way I can «force» the widget to ignore Acrobat or Reader entirely, and will I be able to view pdf-files in the widget on bothMac and Windows if I do so? Best Regards Tore Nilsen > > I don't think we can do anything against this, since if a user (like you) has > installed Acrobat Reader and has checked "Use Web plugin" > (or what the correct wording is) somewhere in the Acrobat preferences, that > will override the "default" behavior of the underlying webkit > on Mac, which Safari uses, too, to display PDFs "natively". > > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > kl...@major-k.de > > > ___ > 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: Browser widget and PDFs
If the PDF is embedded by ordinary HTML (= set url of the browser widget or use in its htmlText , or ) then you can't decide for the user which plugin to use. But the user can force this for himself by moving the corresponding plugin(s) in/out of the plugins-folder (which is on Mac "/Library/Internet Plug-ins"). Controlling is fully possible because the user cannot disable JavaScript for the browser widget. So you can use the rendering library "pdf.js": https://mozilla.github.io/pdf.js/ (which drives the Firefox and Opera PDF-viewer). This isn't easy to implement if CORS isn't available, but you can use base64-encoded data URLs without problems. ___ 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: Browser widget and PDFs
Hi Tore, > Am 22.11.2018 um 18:01 schrieb Tore Nilsen via use-livecode > : > I don’t think so, as the default app is set to be Preview on both machines. > In fact I had forgot I had Acrobat installed on my laptop. > Tore Nilsen >> Could this be related to the default app that handles PDF on your Mac? >> Thanks, >> Brian >>> I have come across a puzzling phenomenon in how the browser widget handles >>> pdfs. On my iMac I do no have Adobe Reader or Adobe Acrobat installed. >>> Here, the browser widget displays pdf-files without any hiccups. On my >>> MacBook I have Adobe Acrobat installed, and the browser widget seems to use >>> Adobe Acrobat to display pdf-files inside the widget. When I remove Adobe >>> Acrobat from the application folder, trying to view a pdf-file in the >>> browser widget will prompt me to locate either Adobe Acrobat or Adobe >>> Reader. Are there any way I can «force» the widget to ignore Acrobat or >>> Reader entirely, and will I be able to view pdf-files in the widget on >>> bothMac and Windows if I do so? >>> Best Regards >>> Tore Nilsen I don't think we can do anything against this, since if a user (like you) has installed Acrobat Reader and has checked "Use Web plugin" (or what the correct wording is) somewhere in the Acrobat preferences, that will override the "default" behavior of the underlying webkit on Mac, which Safari uses, too, to display PDFs "natively". Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ 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: Browser widget and PDFs
I don’t think so, as the default app is set to be Preview on both machines. In fact I had forgot I had Acrobat installed on my laptop. Tore Nilsen > 22. nov. 2018 kl. 17:56 skrev Brian Milby via use-livecode > : > > Could this be related to the default app that handles PDF on your Mac? > > Thanks, > Brian > On Nov 22, 2018, 11:53 AM -0500, Tore Nilsen via use-livecode > , wrote: >> I have come across a puzzling phenomenon in how the browser widget handles >> pdfs. On my iMac I do no have Adobe Reader or Adobe Acrobat installed. Here, >> the browser widget displays pdf-files without any hiccups. On my MacBook I >> have Adobe Acrobat installed, and the browser widget seems to use Adobe >> Acrobat to display pdf-files inside the widget. When I remove Adobe Acrobat >> from the application folder, trying to view a pdf-file in the browser widget >> will prompt me to locate either Adobe Acrobat or Adobe Reader. >> >> Are there any way I can «force» the widget to ignore Acrobat or Reader >> entirely, and will I be able to view pdf-files in the widget on bothMac and >> Windows if I do so? >> >> >> Best Regards >> Tore Nilsen >> >> >> ___ >> 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
Re: Browser widget and PDFs
Could this be related to the default app that handles PDF on your Mac? Thanks, Brian On Nov 22, 2018, 11:53 AM -0500, Tore Nilsen via use-livecode , wrote: > I have come across a puzzling phenomenon in how the browser widget handles > pdfs. On my iMac I do no have Adobe Reader or Adobe Acrobat installed. Here, > the browser widget displays pdf-files without any hiccups. On my MacBook I > have Adobe Acrobat installed, and the browser widget seems to use Adobe > Acrobat to display pdf-files inside the widget. When I remove Adobe Acrobat > from the application folder, trying to view a pdf-file in the browser widget > will prompt me to locate either Adobe Acrobat or Adobe Reader. > > Are there any way I can «force» the widget to ignore Acrobat or Reader > entirely, and will I be able to view pdf-files in the widget on bothMac and > Windows if I do so? > > > Best Regards > Tore Nilsen > > > ___ > 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
Browser widget and PDFs
I have come across a puzzling phenomenon in how the browser widget handles pdfs. On my iMac I do no have Adobe Reader or Adobe Acrobat installed. Here, the browser widget displays pdf-files without any hiccups. On my MacBook I have Adobe Acrobat installed, and the browser widget seems to use Adobe Acrobat to display pdf-files inside the widget. When I remove Adobe Acrobat from the application folder, trying to view a pdf-file in the browser widget will prompt me to locate either Adobe Acrobat or Adobe Reader. Are there any way I can «force» the widget to ignore Acrobat or Reader entirely, and will I be able to view pdf-files in the widget on bothMac and Windows if I do so? Best Regards Tore Nilsen ___ 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: iOS Browser Widget and PDFs? SOLVED
I think you are safe using special folder path "documents" on all platforms. Sent from my iPhone > On Jul 7, 2017, at 1:00 PM, JOHN PATTEN via use-livecode > wrote: > > FWIW… > > The issue was related to the specialFolderPath. When I was testing this > aspect of the app I had it point to specialFolderPath(“Desktop"). Naturally, > on the iPad I changed it to specialFolderPath(“engine”) thinking that would > cover the iOS app. Nope. Apparently you can’t save files (pdfs) to the > “engine” folder. > > I changed it to specialFolderpath(“Documents”) and everything seems to be > good now. > > Cheers! > > John Patten > SUSD > > >> On Jul 6, 2017, at 3:32 PM, JOHN PATTEN via use-livecode >> wrote: >> >> I had it “Answer" me the path to the pdf in the iOS app on the iPad and it >> reports back: >> >> /var/containerns/Bundle?Application?CA0B0721-80F7-4B24-92C4-0B156D/PTP >> System.app/Teacher Laptop Replacement Quote (19).dpf >> >> This should be the path that the - set url of the widget “quoteBrowser” - is >> set to on the , correct? >> >> Thank you! >> >> >>> On Jul 6, 2017, at 3:19 PM, JOHN PATTEN via use-livecode >>> wrote: >>> >>> Hi All! >>> >>> I have little app that I’m using track our department quotes/purchases etc. >>> It pulls the info out of a mySQl db. I have an issue with browser widget >>> displaying the pdf quotes on iOS. The app pulls the PDF out of mysql via: >>> Put "SELECT attachment FROM quotes WHERE name ='" & jQuote & "'" into btSQL >>> >>> put revDataFromQuery(tab, cr, gConnectionID, btSQL) into btData >>> >>> put base64Decode(btData) into vtemp >>> >>> put specialFolderPath("engine") & "/" & jQuote into vPath >>> >>> open file vPath for binary write >>> >>> write vtemp to file vPath >>> >>> close file vPath >>> >>> I then have to replace the spaces in the name of the pdf file with a: >>> >>> replace space with "%20" in vPath >>> set the url of widget "quoteBrowser" of cd id 1067 to "file:" & vPath >>> >>> replace "%20" with space in vPath >>> >>> set the script button "Print Quote" of cd id 1067 to "on mouseUp" & return >>> & "Launch url " & quote & "file:" & vPath & quote & return & "end mouseUp" >>> >>> >>> Again this works fine on my Mac and on the iOS simulator. The PDF shows up >>> just fine in the browser widget. >>> >>> However, when I build the app, and try it out on he actual iPad, it does >>> not. I just get the blank white widget. >>> >>> Any suggestions on what I might try? >>> >>> Thank you! >>> ___ >>> 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 ___ 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: iOS Browser Widget and PDFs? SOLVED
FWIW… The issue was related to the specialFolderPath. When I was testing this aspect of the app I had it point to specialFolderPath(“Desktop"). Naturally, on the iPad I changed it to specialFolderPath(“engine”) thinking that would cover the iOS app. Nope. Apparently you can’t save files (pdfs) to the “engine” folder. I changed it to specialFolderpath(“Documents”) and everything seems to be good now. Cheers! John Patten SUSD > On Jul 6, 2017, at 3:32 PM, JOHN PATTEN via use-livecode > wrote: > > I had it “Answer" me the path to the pdf in the iOS app on the iPad and it > reports back: > > /var/containerns/Bundle?Application?CA0B0721-80F7-4B24-92C4-0B156D/PTP > System.app/Teacher Laptop Replacement Quote (19).dpf > > This should be the path that the - set url of the widget “quoteBrowser” - is > set to on the , correct? > > Thank you! > > >> On Jul 6, 2017, at 3:19 PM, JOHN PATTEN via use-livecode >> wrote: >> >> Hi All! >> >> I have little app that I’m using track our department quotes/purchases etc. >> It pulls the info out of a mySQl db. I have an issue with browser widget >> displaying the pdf quotes on iOS. The app pulls the PDF out of mysql via: >> Put "SELECT attachment FROM quotes WHERE name ='" & jQuote & "'" into btSQL >> >> put revDataFromQuery(tab, cr, gConnectionID, btSQL) into btData >> >> put base64Decode(btData) into vtemp >> >> put specialFolderPath("engine") & "/" & jQuote into vPath >> >> open file vPath for binary write >> >> write vtemp to file vPath >> >> close file vPath >> >> I then have to replace the spaces in the name of the pdf file with a: >> >> replace space with "%20" in vPath >> set the url of widget "quoteBrowser" of cd id 1067 to "file:" & vPath >> >> replace "%20" with space in vPath >> >> set the script button "Print Quote" of cd id 1067 to "on mouseUp" & return & >> "Launch url " & quote & "file:" & vPath & quote & return & "end mouseUp" >> >> >> Again this works fine on my Mac and on the iOS simulator. The PDF shows up >> just fine in the browser widget. >> >> However, when I build the app, and try it out on he actual iPad, it does >> not. I just get the blank white widget. >> >> Any suggestions on what I might try? >> >> Thank you! >> ___ >> 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
Re: iOS Browser Widget and PDFs?
I had it “Answer" me the path to the pdf in the iOS app on the iPad and it reports back: /var/containerns/Bundle?Application?CA0B0721-80F7-4B24-92C4-0B156D/PTP System.app/Teacher Laptop Replacement Quote (19).dpf This should be the path that the - set url of the widget “quoteBrowser” - is set to on the , correct? Thank you! > On Jul 6, 2017, at 3:19 PM, JOHN PATTEN via use-livecode > wrote: > > Hi All! > > I have little app that I’m using track our department quotes/purchases etc. > It pulls the info out of a mySQl db. I have an issue with browser widget > displaying the pdf quotes on iOS. The app pulls the PDF out of mysql via: > Put "SELECT attachment FROM quotes WHERE name ='" & jQuote & "'" into btSQL > > put revDataFromQuery(tab, cr, gConnectionID, btSQL) into btData > > put base64Decode(btData) into vtemp > > put specialFolderPath("engine") & "/" & jQuote into vPath > > open file vPath for binary write > > write vtemp to file vPath > > close file vPath > > I then have to replace the spaces in the name of the pdf file with a: > > replace space with "%20" in vPath > set the url of widget "quoteBrowser" of cd id 1067 to "file:" & vPath > > replace "%20" with space in vPath > > set the script button "Print Quote" of cd id 1067 to "on mouseUp" & return & > "Launch url " & quote & "file:" & vPath & quote & return & "end mouseUp" > > > Again this works fine on my Mac and on the iOS simulator. The PDF shows up > just fine in the browser widget. > > However, when I build the app, and try it out on he actual iPad, it does not. > I just get the blank white widget. > > Any suggestions on what I might try? > > Thank you! > ___ > 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
iOS Browser Widget and PDFs?
Hi All! I have little app that I’m using track our department quotes/purchases etc. It pulls the info out of a mySQl db. I have an issue with browser widget displaying the pdf quotes on iOS. The app pulls the PDF out of mysql via: Put "SELECT attachment FROM quotes WHERE name ='" & jQuote & "'" into btSQL put revDataFromQuery(tab, cr, gConnectionID, btSQL) into btData put base64Decode(btData) into vtemp put specialFolderPath("engine") & "/" & jQuote into vPath open file vPath for binary write write vtemp to file vPath close file vPath I then have to replace the spaces in the name of the pdf file with a: replace space with "%20" in vPath set the url of widget "quoteBrowser" of cd id 1067 to "file:" & vPath replace "%20" with space in vPath set the script button "Print Quote" of cd id 1067 to "on mouseUp" & return & "Launch url " & quote & "file:" & vPath & quote & return & "end mouseUp" Again this works fine on my Mac and on the iOS simulator. The PDF shows up just fine in the browser widget. However, when I build the app, and try it out on he actual iPad, it does not. I just get the blank white widget. Any suggestions on what I might try? Thank you! ___ 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