* 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 b
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,
* Thus wrote Todd Cary:
> After reading the online documentation, it appears that I should be
> using the following code, however it does not appear to work. Are there
> some obvious errors?
>...
> header("Content-Type: application/pdf");
> header("Content-Disposition: inline
After reading the online documentation, it appears that I should be
using the following code, however it does not appear to work. Are there
some obvious errors?
if ($row) {
$pdf_file = $row->CLM_IMG_FILE;
$msg = $pdf_file;
$SRC_FILE = "/tmp/" . $pdf_file;
4 matches
Mail list logo