|
Post by metro on May 7, 2020 22:33:30 GMT -5
Now that we can save PDF's to a SQLite Db I'm looking for ways to display the PDF's when they are retrieved from the Db
BUT my main computer is my i7 dell mini tower running Mint Linux.
Unfortunately I cant get IE7 to display PDF's under WINE and also it crashes frequently....so,
Has anyone got a method they use to display PDF's within their Lb4.5 programs other than with Alyces's Dll.
any help appreciated
|
|
|
Post by irvbingham on May 8, 2020 12:20:58 GMT -5
Perhaps you link to the Adobe Acrobat Reader (WINE) for Linux.
|
|
|
Post by metro on May 8, 2020 21:28:28 GMT -5
Perhaps you link to the Adobe Acrobat Reader (WINE) for Linux. Thanks irvbingham, I did do that , however for some reason I cannot start IE7 despite reading multiple posts on howto. I have other issues with my install (Mint19.1) getting runbasic working so I think I wipe eveything and setup 19.3 with a fresh /HOME too. shame there is no native way to display PDF's....maybe LB5
|
|
|
Post by irvbingham on May 9, 2020 8:44:18 GMT -5
I meant, use LB5 to directly launch Acrobat to display pdf. Why do you need IE7 at all?
|
|
|
Post by svajoklis on May 9, 2020 15:44:57 GMT -5
Isn't IE7 antiquated by now? The solution depends on what you want to do - if you want to display PDFs in your own LB window of some sort, then you'd be looking for some library. If you just want to open it then leverage the OS and ask it to open the file with whatever the user has set as the default PDF viewer. I don't know of any freely distributable PDF viewers, but a Chromium build could work, it has a pretty good PDF renderer, then you'd just need to somehow configure it to hide all the extra UI or something
|
|
|
Post by metro on May 9, 2020 17:11:42 GMT -5
I meant, use LB5 to directly launch Acrobat to display pdf. Why do you need IE7 at all? When using linux & wine to run windows programs you soon learn to accept there are some things you can't do immediately.
I can easily display a pdf from LB4.5 in a native Linux viewer using the code "code" showed in the link in my first post but I don't want to have to close that extra window to keep using the GUI of my main program.
That's why I looked at the DLL Alyce created, it however requires iexplorer to be installed. There in lies the problem, Wine is only compatible with IE6 to IE8. Also 32bit windows programs won't run in 64bit wine (yet another issue) The DLL allows you to display a browser in a graphicbox. If it could use Firefox I don't think I'd have the compatibility issue. Usually there is a work around but it sometimes requires hours of perseverance As I'm getting older I have realised you get a tank full of patience at birth and it runs close to empty after 65, everyones milage is different. If only there was a version of LB than ran natively on Linux
|
|
|
Post by meerkat on May 10, 2020 6:25:05 GMT -5
G'day Laurie..
If you have Run Basic, it's very simple to display PDF's in a browser using <embeb> For example: html "<embed src='files/my.pdf' type='application/pdf' width=100% height=600px />" If you place it in a <TABLE> and use width and height as 100% as you increase or decrease the display the PDF will adjust to fill it at 100%. You can always use other percents. This is especially useful when using a phone. Personally I stay away form PDF's. Just too many problems. You can almost exactly match the look of a PDF using simple HTML.
Hope this helps.. Dan
|
|
|
Post by metro on May 10, 2020 8:43:23 GMT -5
G'day Laurie.. If you have Run Basic, it's very simple to display PDF's in a browser using <embeb> For example: html "<embed src='files/my.pdf' type='application/pdf' width=100% height=600px />" If you place it in a <TABLE> and use width and height as 100% as you increase or decrease the display the PDF will adjust to fill it at 100%. You can always use other percents. This is especially useful when using a phone. Personally I stay away form PDF's. Just too many problems. You can almost exactly match the look of a PDF using simple HTML. Hope this helps.. Dan Thanks Dan, I'm hoping to get runbasic up and running again on my Linux machine, seems I'm the only one experiencing the segmentation fault so I hope to resolve it by blowing away my /HOME directory when I do a complete re-install next week onto the new SSD drive.
All of my broker reports are delivered via PDF so I'm looking at some type of indexing via SQLite to quickly retrieve documents.
The new direct SQLite3 Dll Chris has developed has helped immensely with storing binary files and text files. Thanks for the suggestion.
ya all have a great day,
|
|