Re: PHP Print, PDF (w/FPDF), JavaScript

From: Date: Wed, 20 May 2009 16:21:57 +0000
Subject: Re: PHP Print, PDF (w/FPDF), JavaScript
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-292834@lists.php.net to get a copy of this message
On Wed, May 20, 2009 at 11:31:49AM -0400, Dan Shirah wrote: > > > > > How can I click a button using JavaScript print function and have it > > > generate a PDF with FPDF and get the PDF printed automagically? It seems > > > I have done this before but I cannot recall what I did. > > > > > > TVMIA! > > > If I remember correctly there is an FPDF command **autoprint()** you can put > in at the end of your output to automatically bring up the print > dialog...BUT, if you have Adobe Reader 7.0 or newer, you will ALWAYS get a > popup security message from Adobe about the application trying to > automatically print. > > >From the searches I did, you cannot disable or bypass this warning > notification. I can't find anything like this in FPDF 1.53 or in the documentation for version 1.60. I'd be interested if you can pinpoint it. Paul -- Paul M. Foster

« previous php.general (#292834) next »