Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
08-20-2007, 12:50 PM #1
- Join Date
- Aug 2007
- Thanked 0 Times in 0 Posts
In IE this is as simple as getting the embedded PDF object by id and invoking one its native methods, e.g.
<object id="pdf" classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" data="http://www.adobe.com/devnet/acrobat/pdfs/js_developer_guide.pdf"></object>
var objPdf = document.getElementById('pdf');
In FF this does not work. Neither does it work if the PDF is embedded in the embed element. Firebug - FF debugger add-on - indicates the print() function is not defined in either case.
But according to the plug-in projects documentation at mozilla.org plug-ins native methods can be called this way:
var embed = document.embeds;
Any comments much appreciated,