PDA

View Full Version : AcroPDF.dll equivalent dylib




chidambaram
Mar 2, 2009, 04:41 AM
hi,

What is the equivalent dylib in MAC machine for AcroPDF.dll in PC?

My requirement is i want to find the version of acrobat in my machine using PHP?

how can i do this?

Thanks in advance...



Jethryn Freyman
Mar 2, 2009, 05:33 AM
If you want to open PDF files, you can use Preview, which is built into OS X.

chidambaram
Mar 2, 2009, 05:39 AM
Thanks for ur reply...

My requirement is i want to know the version of adobe acrobat which is installed in my system using PHP.The following code works fine for Firefox in PC.
But for Mac this code shows undefined. What can i do for this?


<coding>function OtherPDFVersion()
{
var version = null;
var plugin = navigator.plugins["Adobe Acrobat"];
if (plugin == null) return null;
if (plugin.description == "Adobe PDF Plug-In For Firefox and Netscape")
{
version = '8.0';
}
else
{
version = plugin.description.split('Version ')[1] + '.0';
}
// return version;
alert(version);
}


</coding>

ElectricSheep
Mar 2, 2009, 10:18 AM
Thanks for ur reply...

My requirement is i want to know the version of adobe acrobat which is installed in my system using PHP.The following code works fine for Firefox in PC.
But for Mac this code shows undefined. What can i do for this?


<coding>function OtherPDFVersion()
{
var version = null;
var plugin = navigator.plugins["Adobe Acrobat"];
if (plugin == null) return null;
if (plugin.description == "Adobe PDF Plug-In For Firefox and Netscape")
{
version = '8.0';
}
else
{
version = plugin.description.split('Version ')[1] + '.0';
}
// return version;
alert(version);
}


</coding>

There is very little need for most users to have any Acrobat PDF plugin installed. PDF support is built directly into the Graphics sub-system of Mac OS X. Safari doesn't need to use a plugin to render PDFs, and there is a small plugin for Firefox that leverages the same ability.

timbos
Mar 2, 2009, 11:28 AM
My requirement is i want to know the version of adobe acrobat which is installed in my system using PHP.The following code works fine for Firefox in PC.
But for Mac this code shows undefined. What can i do for this?


Can't you just use phpinfo(), which (at least on my Vista machine running xammpp here at work) reads the pdf version as one of the output groups?