New topic: 

Viewing PDF files

<http://forums.realsoftware.com/viewtopic.php?t=48007>

         Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic          Author  
Message        ngmp          Post subject: Viewing PDF filesPosted: Wed May 29, 
2013 8:14 am                         
Joined: Wed Jan 09, 2013 5:53 am
Posts: 20                Hi All

I have a fudge to read PDF files in a real studio project. Essentially I am 
using the HTMLviewer and reading in an .htm file which itself embeds a pdf. The 
.htm file has the following html statement (call it help.htm for instance)

<object type="application/pdf" data="G:\sample.pdf" " width="90%" height="90%" 
< >/object >

Then I use a simple htmlviewer.loadurl "G:\help.htm" statement in the open 
event.


This works just fine and does the job I want with IE/Chrome et al (except 
Safari). Not hugely elegant I admit but ok. I am working with Win7 and have all 
the normal browsers installed. My question is - How does the HTMLViewer work 
exactly?, Is it dependant on/linked to a particular browser? or is it truly 
standalone code? The reason for asking is that my "trick" does not work with 
Safari, though safari happily opens pdfs from the interent, so would the fudge 
work in the app running on a MAC if HTMLViewer were dependent on safari? If the 
answer is no can anyone tell me how to embed a pdf into safari?. Hope this 
makes sense

Thanks   
                             Top                Akiland          Post subject: 
Re: Viewing PDF filesPosted: Wed May 29, 2013 8:38 am                           
      
Joined: Tue Jan 04, 2011 3:02 am
Posts: 1225
Location: Jönköping, Sweden                It's a Web App right?      
_________________
 http://www.linkedin.com/in/albinkiland
Dev. iMac 27" + 2x22" LG (2.8GHz Intel Core i7, 12GB RAM, 120GB SSD) OS X 10.8
REAL.Studio Web Edition 2011r3  
                             Top                ngmp          Post subject: Re: 
Viewing PDF filesPosted: Wed May 29, 2013 8:54 am                         
Joined: Wed Jan 09, 2013 5:53 am
Posts: 20                Hi - thanks for the reply...

Actually no this is a desktop app. The appp writes the .htm file internally, 
then creates it, and deletes it on closing down app. User picks which pdf to 
view   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to