Why I can't stamp PDF??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
paolo
Forum Newbie
Posts: 15
Joined: Sat May 14, 2005 6:06 am

Why I can't stamp PDF??

Post 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ä¿¶
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

You should not echo the header(). Those are functions that you should use as described here, header().
paolo
Forum Newbie
Posts: 15
Joined: Sat May 14, 2005 6:06 am

Post 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
Post Reply