Hi all,
i need to embed the adobe reader as an activex plugin because i need
the scriptability of the component.
i can embed the reader as an activex plugin and call its API but when
i sepcify a PDF document as a param, it won't load it.
Code:
if(
Prototype.Browser.IE) {
document.write('<object classid="clsid:CA8A9780-280D-11CF-
A24D-444553540000" id="pdfview" width="100%" height="70%">');
document.write('<param name="src" value="N:/BrowserIndependedObjects/
PDF/acro.pdf">');
document.write('</object>');
}
else {
document.write('<object type="application/x-itst-activex"
clsid="{CA8A9780-280D-11CF-A24D-444553540000}" id="pdfview"
width="100%" height="70%">');
document.write('<param name="src" value="N:/BrowserIndependedObjects/
PDF/acro.pdf" />');
document.write('</object>');
// workaround
//document.getElementById("pdfview").src = document.getElementById
("pdfview").firstElementChild.getAttribute("value");
}
The "workaround" sets the "src" property of the activex component
which causes the component to load the pdf document.
I used the r33 tag version from the repository and built it with VS
2005 and the latest Xulrunner SDK. I also modified the source in
"ffactivex.cpp" to pass parameters which doesn't use the "param_"
prefix.
I also use this approach for another plugin (eDrawings) and there i
specify the target file successfully in the same way.
Thanks & Regards
Simon