Re: Preview button to show PDF without submitting post data?

From: Date: Fri, 06 Nov 2009 15:03:30 +0000
Subject: Re: Preview button to show PDF without submitting post data?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-299681@lists.php.net to get a copy of this message
On Fri, Nov 06, 2009 at 12:11:44PM +0100, Sándor Tamás (HostWare Kft.) wrote: > My question is slightly the same: > how can I print a dynamically generated text file without opening a new > window, or navigating from the current one? > Generally speaking, browsers use a helper application (like Acrobat Reader or XPDF) to render a PDF. The helper application will have a print icon or some way to print the PDF. Even if the PDF is seemingly rendered by the browser itself (as sometimes happens in IE), there is still a printer icon available. If you *aren't* displaying the PDF, but only generating it, there isn't really a way to do this without javascript or something similar. The PDF is on the server, but printing will be on the client/browser. Paul -- Paul M. Foster

« previous php.general (#299681) next »