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