summaryrefslogtreecommitdiff
path: root/glib
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2009-04-10 13:09:37 +0200
committerCarlos Garcia Campos <carlosgc@gnome.org>2009-04-10 13:12:03 +0200
commit3210970dc1d6faf51bce59bb7ecb6b881f9c0fe6 (patch)
treea65de7c0ba4498d1f267ffbce5ee3fde7b577b34 /glib
parentb0b9798c85c7c6d6f336f73135a98974897b9f60 (diff)
[glib] Print annotations with the print flag enabled
Diffstat (limited to 'glib')
-rw-r--r--glib/poppler-page.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/glib/poppler-page.cc b/glib/poppler-page.cc
index e17d4de1..f1dd1336 100644
--- a/glib/poppler-page.cc
+++ b/glib/poppler-page.cc
@@ -522,6 +522,8 @@ poppler_page_set_selection_alpha (PopplerPage *page,
static GBool
poppler_print_annot_cb (Annot *annot, void *user_data)
{
+ if (annot->getFlags () & Annot::flagPrint)
+ return gTrue;
return (annot->getType() == Annot::typeWidget);
}