Solved

How to detect if client has Acrobat Reader from aspx file?

Posted on 2004-09-03
6
700 Views
Last Modified: 2012-08-14
Hi all,

I have an aspx page, from which I would like to detect if the client has Acrobat Reader installed, and which version. How can I do this?

Also, if Acrobat Reader has been detected, and the PDF file is opened in the browser, is there a way for me to choose which Acrobat Reader toolbars are shown?

Thanks.
0
Comment
Question by:Otana
  • 2
6 Comments
 
LVL 17

Expert Comment

by:AerosSaga
ID: 11972640
You will have to use javascript:

property pDefaultDocDir

on new (me)  
   pDefaultDocDir = "Files"
 return me    
end  

on OpenFile me , p_FileType , p_Dir , p_FileName
 set FileToOpen = the moviePath & pDefaultDocDir  & "\" &  p_Dir & "\" & p_FileName  
 -- Open the FileType
 if (p_FileType = "PDF") then
   me.StartAcrobat ( FileToOpen )
 end if
end OpenFile

--Acrobat File opening
on StartAcrobat me, p_PDFFile  
  if ( baFileExists( p_PDFFile ) = 1 )  then -- check if file exists
   set AcroExe = baFindApp( "pdf" ) -- see if acrobat is installed
   if AcroExe <> "" then -- if they have acrobat and the file exists
     baOpenFile(  p_PDFFile , "Maximised" ) -- open the file
   else --
     alert("You do not have Adobe Acrobat installed")
   end if  
 end if
end StartAcrobat

http://www.sitepoint.com/article/flash-director-mx-2004/2

Regards,

Aeros
0
 
LVL 8

Expert Comment

by:shovavnik
ID: 11973311
I believe the only way to specify which toolbars are available are from within the pdf file.
0
 
LVL 11

Author Comment

by:Otana
ID: 11987756
Isn't there a way to do it using C#? I'm trying to avoid miwing languages as much as possible.
0
 
LVL 17

Accepted Solution

by:
AerosSaga earned 300 total points
ID: 11988767
in short NO you will need a client side script.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question