Re: Printing a PDF from a webpage
- From: lisa.liel@xxxxxxxxx
- Date: Tue, 3 Feb 2009 09:06:57 -0800 (PST)
On Feb 2, 3:47 pm, Peter Flynn <peter.n...@xxxxxxxxxxxxx> wrote:
lisa.l...@xxxxxxxxx wrote:
I have a web app where the users will sometimes need to print out a
PDF file. We don't want to have to display the PDF in the webpage and
have the user click on the print button within the PDF. We want to be
able to automate Acrobat Reader and get it to print out without the
user having to do anything but say yes.
We can do this with Microsoft Word. We can open it invisibly and
trigger the print method. But we haven't found any way to automate
Acrobat Reader from within the webpage, using Javascript or VBscript
(this is an IE only environment).
Is there a way to do this?
Not if the user doesn't have Acrobat Reader installed :-)
What you describe involves writing to the operating system (in this
case, a print queue), and that isn't usually possible inside the
web-based sandboxes, for obvious security reasons. It normally requires
a human to intervene. But maybe someone has a way round this...and maybe
there's an exploitable hole in IE that you could use...
Thanks, Peter. Actually, the computer will have Acrobat Reader on
it. Every workstation that runs this page will. So my question is
really, how can I activate an instance of Reader in the background,
get it to print, and then close it. From script on a webpage. This
is what I do with Word, but I don't know how to do it with PDFs. I've
looked at PDFLib.dll, but I haven't found a way to make it work.
Lisa
.
- Follow-Ups:
- Re: Printing a PDF from a webpage
- From: Peter Flynn
- Re: Printing a PDF from a webpage
- From: Ken Starks
- Re: Printing a PDF from a webpage
- References:
- Printing a PDF from a webpage
- From: lisa . liel
- Re: Printing a PDF from a webpage
- From: Peter Flynn
- Printing a PDF from a webpage
- Prev by Date: Re: Googlebooks pdf compression
- Next by Date: Re: Printing a PDF from a webpage
- Previous by thread: Re: Printing a PDF from a webpage
- Next by thread: Re: Printing a PDF from a webpage
- Index(es):
Loading