Re: Displaying a pdf inline

From: Date: Wed, 15 Sep 2004 04:18:12 +0000
Subject: Re: Displaying a pdf inline
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-196685@lists.php.net to get a copy of this message
* Thus wrote Todd Cary: > Curt - > > Thank you for the quick response. The file is being sent and the PDF > reader does try to open it, but it is corrupted. When I change the > Disposition to > > header("Content-Disposition: attachment; filename=image.pdf") > > and save the file, it cannot be opened do to errors within the file. > Yet, the file can be opened on the server. > > Am I missing something simple here? One thing to do is look at the actual contents of the file. You may see a PHP_NOTICE, or PHP_WARNING there, which will make the file appear corrupt to the pdf reader. Curt -- The above comments may offend you. flame at will.

« previous php.general (#196685) next »