[thelist] Printing an embedded PDF file
Charles R Graham
cgraham25 at csc.com
Thu Oct 16 12:53:52 CDT 2003
How can I use Javascript to send a print command to an embedded PDF file?
I have tried to no avail:
var pdf = document.getElementByID("pdf");
pdf.MenuItemExecute('Print');
and also
pdf.PrintPages(0, 1, 3, true, true);
I receive no indication that anything is wrong, or that anything is
happening. Has anyone ever tried to do this before?
Here is the html code I am using. This successfully displays the sample
PDF file.
<object id="pdf" classid="clsid:CA8A9780-280D-11CF-A24D-444553540000">
<param name="src" value="sample.pdf" />
<embed src="sample.pdf" width="100%" height="600px">
<noembed> Your browser does not support embedded PDF
files. </noembed>
</embed>
</object>
</div>
Thanks,
Chuck
More information about the thelist
mailing list