Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Acrobat Print via Javascript


Message #1 by Joe McNulty <joe.mcnulty@s...> on Tue, 22 May 2001 14:34:49 -0500
Ok, here's the scenario:
We've got an intranet application that creates a PDF file for the 
user.  This PDF file is embedded in a HTML page via an <object> tag, and 
additional information is placed in the remainder of the page.

What I need to know, is can a print command be sent to this embedded PDF 
document thru javascript?
I know I could place the javascript in the document, but the PDF needs to 
be pure as the format is approved by a controlling agency.  So I need an 
external call to activate the PDF printing.

I've tried document.getElementById("pdf1").print(), and nothing 
happens.  Also tried to use the print function from adobe's JavaScript 
manual, no dice.

any and all help is appreciated.
thanks,
Joe
---
"What moves the Greek warrior to deeds of heroism is not a sense of duty as 
we understand it - duty towards others: it is rather duty towards 
himself.  He strives after that which we translate as 'virtue' but is in 
Greek arete, 'excellence' [...]"
- The Greeks by H.D.F. Kitto


  Return to Index