[pmwiki-users] pdf/jpg/gif rendering
tamouse.lists at gmail.com
Sun Aug 18 12:37:38 CDT 2013
On Aug 18, 2013, at 8:44 AM, Vinod Gupta <vinod at princeton.edu> wrote:
> On 2013-08-18 3:22 AM, Eric Forgeot wrote:
>> On 18/08/2013 08:31, Vinod Gupta wrote:
>>> Actually, I inherited two very similar pmwiki sites, one is working fine, other is not. What could be config setting that affects rendering?
>>> I have commented $EnableDiag=1; Where should find diag info now?
>> PDF are not supposed to be rendered in a browser. Since you have problem with them, I think it's a mime-type problem when you download them, the server will for example serve them as plain text and you'll get the code of the pdf instead of opening them with your desktop application. Is it the same for JPG files? Do they display well when they are included in the pages, but display code when you try to download them?
>> Look at this if it's the case:
> I meant site1 is invoking Acroreader to interpret PDF and site2 is displaying PDF code. Same thing happening for jpg. gif etc. I think pmwiki is not sending MIME type correctly for site2.
You may need to look at the site configuration. Unless you explicitly changed something in pmwiki, this wouldn't be caused by anything in pmwiki. How does the site serve up .pdf/.jpg/.gif files addressed directly by your browser, which wouldn't touch the pmwiki code at all?
More information about the pmwiki-users