Daniel Walz wrote: > Hi, > > I installed the Collection extension and have a problem which seems to > be not uncommon: > > If I want to download the document, the pdf-File is opened in the > browser and shown as > > -------------------------------------------------- > %PDF-1.3 %“Œ‹ž ReportLab Generated PDF document http://www.reportlab.com > % 'BasicFonts': class PDFDictionary 1 0 obj % The standard fonts > dictionary << /F1+0 117 0 R /F2+0 121 0 R /F3+0 125 0 R /F4+0 129 0 R > /F5 19 0 R /F6+0 133 0 R >> endobj % 'Annot.NUMBER1': class LinkA ... > -------------------------------------------------- > > So the File is sent as "text/html" instead as "application/pdf". > > I never have problems to download pdf files, so it's not a problem of my > browser (FF 3.6.12) I think. > > Saving the file to disk doesn't work, it can't be read as PDF.
If it works with curl, firefox will be doing some tranformation before savign breaking it (heh, it was told it was text!). > The only solution so far is download the file directly via > > curl -D - -o test.pdf -d collection_id=1234567890 -d writer=rl -d > command=download http://tools.pediapress.com/mw-serve/ > > But that doesn't make fun... > Has anyone a solution for that problem? Could it be a problem of the > server at pediapress? > > Daniel It's a server configuration problem. The server should be sending it as application/pdf if it's sending text/html it has to be fixed. _______________________________________________ MediaWiki-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
