Re: PDF/Postscript in gtk+




On Jan 30, 2006, at 6:14 PM, Raul Dias wrote:

I need to display pdf documents (PDF::Api2 generated documents) inside a perl-gtk+ app.

This app will be cross plataform (linux/windows).

Have you considered poppler?  http://poppler.freedesktop.org/
This is the PDF rendering library behind Evince. We've used it as a testbed for introspection-based bindings, but there is no existing conventional binding; doesn't look too hard, though.


Postscript will do if pdf is not an option.

I know that gnome has a pdf/postscript viewer, or something like this (at list to preview the print job).

GGV is just a front-end for Ghostscript.


Is this usable inside gtk2-perl?

I have a vague recollection that someone once posted to this very mailing list about using Ghostscript's X11 support in a Gtk2-Perl program. It boiled down to getting the native window handle and setting a bunch of atoms on it so that gs could find it.


If so, does it work on win32?

Beats me.  The Ghostscript trick sounds pretty X-specific.


My last resource is to convert it to XPM thru Image::Magik, but this
sounds awful.

ImageMagick uses Ghostscript to handle PDF and Postscript. If you have Ghostscript available, you might as well use it directly.


--
Package contains eight 13-inch aliens in assorted colors.
 -- Catalog copy for space invaders wall decals.




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