Re: PDF pain

From: Date: Sat, 20 Jul 2002 14:46:12 +0000
Subject: Re: PDF pain
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-108664@lists.php.net to get a copy of this message
I'm on Linux/Mozilla as well. See this screenshot: http://lerdorf.com/pdf.png -Rasmus On Sun, 21 Jul 2002, Michael Hall wrote: > > Thanks for that, I'll leave O'Reilly alone. > > For the record, I was using Konqueror and Mozilla (and xpdf) on RedHat > 7.2, standard installations. > > Michael > > > On Sat, 20 Jul 2002, Rasmus Lerdorf wrote: > > > > 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 > > > > > > > > -- > -------------------------------- > n i n t i . c o m > php-python-perl-mysql-postgresql > -------------------------------- > Michael Hall ninti@ninti.com > -------------------------------- >

« previous php.general (#108664) next »