0 Replies Latest reply on May 14, 2007 11:56 AM by tomarenz

    Content-Type should not have charset with pdf

    tomarenz

      Hi, while searching for the reason of wrong rendering of pdf contents in IE 6/7 - it used to display pdf in a separate window, then Acrobat plugin blocked - I noticed that this was due to inserting "Content-Type=application/pdf;charset=ISO-8859-1" into HTTP responses.
      This is done in org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter, line #232. I simply added "if (!contentType.endsWith("/pdf"))" and now pdf rendering occurs inline, without any plugin blocking.
      All of this while having

      <object data="/Test/blob.pdf" type="application/pdf" width="400" height="400"/>
      

      since mediaOutput component does not work with pdf.