Ok, I m driving my self crazy. I need to print several PDF files from links in my page, can anyone help please.
ie:
Print File 1 (will print, www.mysite.com/adobedoc1.pdf )
Print File 2 (will print, www.mysite.com/adobedoc2.pdf )
Print File 3 (will print, www.mysite.com/adobedoc3.pdf )
Thanks in advance!
<html>
<head>
<script>
function printPDF(url){
document.getElementById('P
document.getElementById('P
}
</script>
</head>
<body>
<a href="javascript:printPDF(
<a href="javascript:printPDF(
<a href="javascript:printPDF(
<object id="Pdf1" type="application/pdf" style="width:0;height:0"><
</body>
</html>
For other browsers you will probably have to create a separate embed or object for each pdf you want to print and have them get loaded when the page loads. (Similar to one of your previous posts):
<html>
<head>
<script>
function printPDF(elementId){
var x = document.getElementById(el
x.click();
x.setActive();
x.focus();
x.print();
}
</script>
</head>
<body>
<a href="javascript:printPDF(
<a href="javascript:printPDF(
<a href="javascript:printPDF(
<embed id="PDF1" src ="www.mysite.com/adobedoc2.pdf" width="0" height="0">
<embed id="PDF2" src ="www.mysite.com/adobedoc2.pdf" width="0" height="0">
<embed id="PDF3" src ="www.mysite.com/adobedoc3.pdf" width="0" height="0">
</body>
</html>