RSS Forums RSS
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 8106 | Replies: 4
Reply
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,703
Reputation: peter_budo is just really nice peter_budo is just really nice peter_budo is just really nice peter_budo is just really nice 
Rep Power: 12
Solved Threads: 320
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Launch external application from web document

  #1  
Apr 17th, 2006
Can you please help me with launching Acrobat Reader from html document?
I have a html page which contain few links leading to PDF documents. There is no problem to open basic PDF's throught hyperlink into browser window, but some of this PDF's are searchable and if I try to open them this way I loose search functionality. What I'm looking for is to launch Acrobat Reader as external application on its own and not application in browser window.


Any suggestions will be appreciated
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, JAVAWUG (Java Web User Group), Coding the Architecture
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Location: Lincoln Park, Michigan
Posts: 1,744
Reputation: Comatose is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 108
Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Moderator

Re: Launch external application from web document

  #2  
Apr 17th, 2006
The user of the site, to my knowledge would have to allow activeX controls, to be accepted and run on their system. It's not really a good idea. If you are doing it for yourself, or for a business... say, an internal network or something nuts.... then you could allow access to activeX scripting, and have it use the shell method of the wscript object. If it's for people who you may not know are using the site, chances are their browser isn't going to allow activex to be run, and your links would fail for security reasons. If you have access to all these machines, you could remove the browser plugins that allow acrobate to load inside of the browser, which would make them "download" the file (or open from current location) and it would use acrobate, the external program....
Reply With Quote  
Join Date: Feb 2006
Posts: 49
Reputation: Esopo is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 1
Esopo Esopo is offline Offline
Light Poster

Re: Launch external application from web document

  #3  
Apr 17th, 2006
Do you have access to server side scripting?

Using server side HTTP headers you can tell the browser that the file is to be downloaded instead of opened in the browser. For instance,
http://www.vbulletin.com/forum/showthread.php?t=70959
Site admin at NetBulge.com, a place set out to improve the web 1 good article at a time :)
Reply With Quote  
Join Date: Dec 2004
Posts: 1,592
Reputation: tgreer is an unknown quantity at this point 
Rep Power: 7
Solved Threads: 35
Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Launch external application from web document

  #4  
Apr 18th, 2006
When serving ANYTHING over the web, mime-types come into play. You're telling the server to tell the browser that you're serving this-type-of-file, and the browser decides, based upon the user's configuration choices, how to handle that file.

I can't think of any way you can force your users' browsers to launch Acrobat as an external application, or even, for that matter, that Acrobat Reader should open the PDF instead of Acrobat Professional or any other of the dozens of PDF parsers available that a user may have chosen instead of Reader.
Reply With Quote  
Join Date: Feb 2006
Posts: 49
Reputation: Esopo is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 1
Esopo Esopo is offline Offline
Light Poster

Re: Launch external application from web document

  #5  
Apr 18th, 2006
I can't think of any way you can force your users' browsers to launch Acrobat as an external application, or even, for that matter, that Acrobat Reader should open the PDF instead of Acrobat Professional or any other of the dozens of PDF parsers available that a user may have chosen instead of Reader.
You can tell the browser how you want the file handled, whether it is to be opened or downloaded (the user gets the final word on that). That alone will result in the desired behavior, the file will be downloaded and when opened it will open by the default application for that extension, be that Acrobat reader or anything else, but outside of the browser.

An alternative to that would be to use ActiveX in IE to be have access to giving the system direct orders.

Quoting myself from two other threads:
--------------------------
On the client side, your best shot is to ask your users to right click and choose save as. The other decent way is to zip your pdf file.

The only way to tell the browser to download a file, is to send HTTP headers telling it to do so. This can only be done on the server side. Do you have PHP or ASP or PERL support?

************************************
ASP.NET:
With heavy explaining:
http://aspalliance.com/259

simple copy and paste:
http://www.tek-tips.com/gfaqs.cfm/pid/855/fid/2050


PHP:
PHP + good explanation of why's, do's and dont's
http://answers.google.com/answers/threadview?id=169198

Simple copy and paste:
http://www.ozoneasylum.com/9717

ASP:
Microsoft's ASP explanation
http://support.microsoft.com/default...NoWebContent=1

Simple copy and paste:
http://www.psacake.com/web/if.asp


Even PERL, if you will:
http://www.sitepoint.com/article/fil...-script-perl/2
************************************


From:
Prompt to Save As When Clicking a PDF
http://www.experts-exchange.com/Web/..._21313695.html

how to avoid playing the media file directly and open a "File Download" dialog
http://www.experts-exchange.com/Web/..._21073694.html



Best regards,

Esopo.
Site admin at NetBulge.com, a place set out to improve the web 1 good article at a time :)
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:31 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC