Does Content-Encoding effect any PDF generation
Posted: Tue Jul 17, 2007 5:05 am
Hi all,
I'm facing this problem, I'm trying to download PDF generated dynamically from the server.
When I say
All it does is it generates the pdf content but it doesnt go to the client (browser) as a save/Open abcd.pdf
When I see the headers I see the gzip compression happening . Will this effect the pdf generation??
Can somebody help in what I've to do. I'm using Zend Framework PDF
I'm facing this problem, I'm trying to download PDF generated dynamically from the server.
When I say
Code: Select all
header('Content-type: application/pdf');
header('Content-Disposition: attachment; filename="abcd.pdf"');
echo $pdf->render();When I see the headers I see the gzip compression happening . Will this effect the pdf generation??
Code: Select all
HTTP/1.x 200 OK
Date: Tue, 17 Jul 2007 09:58:25 GMT
Server: Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.2
X-Powered-By: PHP/5.2.2
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
content-disposition: attachment; filename="abcd.pdf"
Content-Encoding: gzip
Content-Transfer-Encoding: binary
Vary: Accept-Encoding
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: application/pdf