Page 1 of 1

Why I can't stamp PDF??

Posted: Fri May 27, 2005 4:50 am
by paolo
Hello,
I've created my PDF using PDFLib (the one that comes with php), when I try to display the document on browswer I receive
[quote]
header("Content-type: application/pdf"); header("Content-Lenght:434414"); header("Content-Disposition: inline; filename=.temp.pdf"); %PDF-1.4 %äãÏÒ 3 0 obj <> stream xœmUËrâFÝówçI•Á-ñ³“'ØE›)¬Ì"»©‘oªÕÍôƒ…¿*Ÿ”e~!»Ün‰‰U ¸ïsν<£‡'I Åa”£WÓƒå”AÑŒ‚a;úô5Î_w°ÞnÞòÇuQä¿¶

Posted: Fri May 27, 2005 12:07 pm
by JAM
You should not echo the header(). Those are functions that you should use as described here, header().

Posted: Sat May 28, 2005 7:29 am
by paolo
thanks a lot, it worked, my problem is related to the fact I send <html><title>.. infos into the first lines of file, I removed them as suggested in link u passed me and it worked.
Thanks a lot!!!
Paolo