I see from previous threads (e.g.
http://groups.google.com/group/mwlib/browse_thread/thread/6fdc02c37a375dcc/80b1b4376c6816b1)
that this problem is not new but I also haven't found a working
solution for it. I'm running MW 1.16beta2 and the latest SVN checkout
of the Collection extension on a Cent OS 5.4 server w/ Apache 2.x and
PHP 5.2.10 w/ Curl. I'm using the pediapress mwlib rendering server
and the book creation process goes perfectly up until I get to the
link to click where I can download the PDF. Clicking the link results
in the contents of the PDF file being rendered directly in the browser
(Firefox 2.6 and Chrome 5.0.375.38 beta, both on Linux, ), e.g.
%PDF-1.4 %âãÏÓ 6 0 obj << /Filter [/FlateDecode] /Length 712 >> stream
xœ}ÕËjÛP …

When I copy the link and run `wget -S <link to PDF for download>` it
shows "Length: unspecified [text/html]" and saves the file as
"index.php?title=Special:Book". If I rename the downloaded file to
"book.pdf", it is a valid PDF that displays without issue in Adobe
Reader.

I tried forcing the $content_type variable to "application/pdf" in
Collection.body.php (line ~1172) but it did not change anything.

Any ideas what I need to do in order to get the link to generate a PDF
that downloads instead of displaying it directly in the browser?

-Tim

-- 
You received this message because you are subscribed to the Google Groups 
"mwlib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mwlib?hl=en.

Reply via email to