I have s problem with PDF
Posted: Wed Nov 02, 2005 7:08 am
I'm using ghostscript to merge 1 or more pdf files into a big one but when i'm trying to display the output i'm getting only
strange characters. I mention that the file is created and looks ok on server, but in browser is dust.
My code looks
The output looks like:
[quote]
%PDF-1.3 %Çì
strange characters. I mention that the file is created and looks ok on server, but in browser is dust.
My code looks
Code: Select all
exec($createPdf);
$len = filesize($tmpfname);
header("Content-type: application/pdf");
header("Content-Length: $len");
header("Content-Disposition: inline; filename=SelectedOrders".$_POST['pdfExt']);
readfile($tmpfname);
unlink($tmpfname);
exit();The output looks like:
[quote]
%PDF-1.3 %Çì