Re: PDF pain

From: Date: Sat, 20 Jul 2002 14:02:01 +0000
Subject: Re: PDF pain
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-108661@lists.php.net to get a copy of this message
> Thanks for your pointers Richard, you've given me plenty of ideas for when > things go wrong as I continue to explore PHP and PDF. > > As it turns out, my problem was a typo copied faithfully from 'Programming > PHP'. For anyone else trying the example (Hello world in PDF, on p 234), > make sure you use "application/x-pdf" in the Content-Type header, not > "application/pdf" as printed in the book. > > If this really is a typo, could someone let me know and maybe I'll > register it with O'Reilly if they don't already know about it. > > Typos happen in all books, especially technical books. Apart from this > small error (?), the book is great and has really filled out the holes in > my PHP knowledge. Well, I wrote that, and it is not a typo. Your browser is simply misconfigured. If you install Adobe's Acrobat Reader, which these days is the de-facto standard PDF browser plugin, it will register itself as application/pdf. Same for every other PDF viewer on every platform I have ever tried. So, if you want people to be able to view your page, you better use application/pdf and not application/x-pdf and fix your browser config while you are at it. -Rasmus

« previous php.general (#108661) next »