Support » Plugin: WP Post to PDF » pdfs are downloadable and not viewable from firefox 19 internal pdf.js

  • vasvir

    (@vasvir)


    So I have the plugin and it works nice and it always gives me the option to download or view with the external viewer. I would like to see the pdf with firefox’x internal viewer.

    At first I thought it was a mime type error. It return ‘pdf’ instead of ‘application/pdf’. The patch below fixes it.

    – $output = $this->output_pdf_file($filePath, $fileName, $fileMime);
    + $output = $this->output_pdf_file($filePath, $fileName);

    Now it returns ‘application/pdf’. But that was not the problem. Do you know what is the problem and how I can fix it?

    Thanks in advance

    Vassilis

    http://wordpress.org/extend/plugins/wp-post-to-pdf/

  • The topic ‘pdfs are downloadable and not viewable from firefox 19 internal pdf.js’ is closed to new replies.