Re: PDF/Postscript in gtk+



On Mon, 2006-01-30 at 21:34 -0500, muppet wrote:
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.

This would be exactly what I am looking for.


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.


Is this the same thing GGV does? If not it might work under win32 too.


If so, does it work on win32?

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


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.

God point.
It seems that right now, this is the only path I have (besides calling
external apps).

Raul Dias




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