Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Re: Acrobat Print via Javascript


Message #1 by dxhill@h... on Tue, 11 Jun 2002 15:32:00
Hi Joe/All,

Did you ever get this to work. I have the similiar problem. I have a PDF 
form and I want to validate the user against a backend database. If the 
user is allowed to use the pdf form I want to send the pdf form and it's 
data to the printer. How can I send an http request to the webserver, to 
validate the user, send back a yes/no reply, and not lose the data within 
the PDF file?

Bet's me.
Dale


> Ok, here's 
> 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