Re: Possible Evince -> Mozplugger Bug?



I am having the same problem with my Ubuntu box too.

I haven't looked into it in detail, but if the evince developers would like any
further information let me know.

Todd

On 4/27/05, Gord Busse <gordo bussefamily net> wrote:
> Greetings,
> 
> First of all I would like to thank the developers for such a great
> product. I use it on my Ubuntu desktop to view PDF files all the time
> now as it is very fast and I appreciate all of the features.
> Unfortunately though, I am having a problem using it to view some PDF
> files in Firefox via Mozplugger. Most PDF files work fine except for the
> following situation.
> 
> Before I explain in detail I just want to say that I have tested this
> with Acrobat Reader 5 Plugin, Acrobat Reader 7 Plugin. XPDF and GPDF in
> Ubuntu Hoary (5.04). I am running the latest version of Evince available
> to me in Ubuntu which is version 0.1.9.
> 
> Ok, now a little background. I have created a secure web based PDF
> document viewing application using PHP. By secure I mean the users have
> to log into the application via a preset account before they can view
> any of the PDF documents. All PDF documents are stored outsite the web
> accessible directories and when requested by a logged in user are then
> passed through to the browser via a PHP script with the appropriate
> application/pdf headers added.
> 
> As I mentioned before when accessing these documents with Acrobat Reader
> 5 plugin, Acrobat Reader 7 plugin, XPDF or GPDF via Mozplugger the
> documents display correctly embedded in the corresponding application
> embedded into Firefox via Mozplugger.
> 
> But, when I try to access the documents using Evince embedded into
> Firefox via Mozplugger I receive the following error dialog from Evince:
> 
> Unable to open document
> Unhandled MIME type: 'application/x-php'
> 
> I have tried various configurations in Mozplugger and my PHP code and I
> am convinced, since it works fine in all of the other applications that
> this must be a bug with Evince?
> 
> Anyways, if anyone is interested here is the configuration from my
> mozpluggerrc file:
> 
> application/pdf: pdf: PDF file
> application/x-pdf: pdf: PDF file
> text/pdf: pdf: PDF file
> text/x-pdf: pdf: PDF file
>                 repeat noisy swallow(evince) file: evince "$file"
> 
> And here is the actual snippet of PHP code that passes the file through
> to the browser:
> 
> function ShowDocument()
> {
>     $document = DOCUMENT_STORAGE_DIR."/".$this->documentPreviewFilename;
>     header("Content-Type: application/pdf");
>     header("Content-Length: " . filesize($document));
>     header('Content-Disposition: inline;
> filename="'.$this->documentPreviewFilename.'"');
>     readfile($document);
> }
> 
> So, for now I am using Evince to view documents on my desktop and GPDF
> to view documents via Firefox/Mozplugger. Hopefully this issue with
> Evince will get figured out some time as given its speed and superior
> interface I would really love to just use it and nothing else.
> 
> Thanks again,
> Gord
> 
> --
> Gord Busse <gordo bussefamily net>
> 
> _______________________________________________
> Evince-list mailing list
> Evince-list gnome org
> http://mail.gnome.org/mailman/listinfo/evince-list
>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]