Re: [evince] ev_document_factory_get_document not loading pdf file
- From: Hib Eris <hib hiberis nl>
- To: Richard Shann <richard shann virgin net>
- Cc: evince-list <evince-list gnome org>
- Subject: Re: [evince] ev_document_factory_get_document not loading pdf file
- Date: Tue, 19 Mar 2013 10:13:53 +0100
On Tue, Mar 19, 2013 at 9:48 AM, Richard Shann <richard shann virgin net> wrote:
Hi Hib,
I have had some feedback from Jeremiah who is working with the Mac on
the evince library build, he ran the call to
ev_file_get_mime_type("file:///tmp/DenemoYBsSdY/denemoprintB.pdf", 1, NULL)
in gdb and got back the string
"text/plain"
"text/plain" is obviously not correct, it should be something with
'pdf' in it I guess.
Could you see what
ev_file_get_mime_type("file:///tmp/DenemoYBsSdY/denemoprintB.pdf", 0, NULL)
gives back as well?
Evince code for mime type detection is in libdocument/ev-file-helpers.c.
I'm afraid it is a bit unpredictable when glib fails to find the
correct mime-type/content-type.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]