Re: display PDF in gtkmm app
- From: Kasper Peeters <kasper peeters phi-sci com>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gtkmm-list gnome org
- Subject: Re: display PDF in gtkmm app
- Date: Mon, 12 Oct 2015 21:57:31 +0100
I use libevince-view (evince-view-3.0 with pkg-config) for PDFs and
other "image" files, falling back to a regular Gtk::Image when
libeeview can't handle it.
https://developer.gnome.org/libevview/stable/
My code in Glom isn't pretty, but it works:
https://git.gnome.org/browse/glom/tree/glom/utility_widgets/imageglom.cc#n321
That's actually very useful, thanks. Unfortunately, the list returned by
ev_backends_manager_get_all_types_info() is empty, and attempting to
render a PDF file results in an error message "Error: File type PDF
document (application/pdf) is not supported". Is there some
initialisation of libevince-view which I missed?
And related: are you aware of any documentation of libevince-view? I
have never seen source with so few comments in it ;-)
Cheers,
Kasper
On Fri, 2015-09-25 at 11:15 +0100, Kasper Peeters wrote:
Hi,
I need to display small PDF files inside a gtkmm app. These are
single-page documents, and I just want to display the cropped
content of those documents. What's the recommended way to do this?
Has anyone written a simple C++ wrapper around libevince or poppler
to make this kind of thing easy?
Cheers,
Kasper
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
https://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]