Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[imp] pdf mime type

1 view
Skip to first unread message

G G Papazoglou

unread,
Feb 7, 2003, 5:04:01 AM2/7/03
to
Hi to all.

I've been experimenting trying to enable pdf viewing support in imp, using
pdftohtml 0.34. So I have added the respective entry in
config/mime_drivers.php:

$mime_drivers_map['horde']['registered'] = array(
'php', 'tgz', 'vcard', 'enriched', 'msword', 'msexcel','pdf'

$mime_drivers['horde']['pdf']['location'] = '/usr/local/bin/pdftohtml';
$mime_drivers['horde']['pdf']['inline'] = true;
$mime_drivers['horde']['pdf']['handles'] = array(
'application/pdf',
'x-extension/pdf');
$mime_drivers['horde']['pdf']['icons'] = array(
'default' => 'pdf.gif');

and of course pdftohtml works properly. However when trying from inside imp,
I get a window with the following error:

Fatal error: Call to a member function on a non-object in
/usr/local/apache/htdocs/horde/imp/view.php on line 77

Any ideas please?

Regards,
Greg

--
IMP mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: imp-uns...@lists.horde.org

Chuck Hagenbuch

unread,
Feb 7, 2003, 10:10:52 AM2/7/03
to
Quoting G G Papazoglou <g...@med.uoc.gr>:

> I've been experimenting trying to enable pdf viewing support in imp,
> using pdftohtml 0.34. So I have added the respective entry in
> config/mime_drivers.php:
>
> $mime_drivers_map['horde']['registered'] = array(
> 'php', 'tgz', 'vcard', 'enriched', 'msword', 'msexcel','pdf'

> and of course pdftohtml works properly. However when trying from inside


> imp, I get a window with the following error:
>
> Fatal error: Call to a member function on a non-object in
> /usr/local/apache/htdocs/horde/imp/view.php on line 77

Did you add imp/lib/MIME/Viewer/pdf.php, defining the MIME_Viewer that knows
how to call pdftohtml?

-chuck

--
Charles Hagenbuch, <ch...@horde.org>
must ... find ... acorns ... *thud*

0 new messages