Skip to content

glib: add support for stamp annotation

Nelson Benítez León requested to merge nbenitez/poppler:stamp_glib_api into master

Creates new PopplerAnnotStamp type with following public api:

PopplerAnnot *poppler_annot_stamp_new(PopplerDocument *doc, 
                                      PopplerRectangle *rect);
gchar *poppler_annot_stamp_get_icon(PopplerAnnotStamp *poppler_annot);
void poppler_annot_stamp_set_icon(PopplerAnnotStamp *poppler_annot, 
                                  const gchar *icon);
void poppler_annot_stamp_set_custom_image(PopplerAnnotStamp *poppler_annot,
                                          cairo_surface_t *image);

Updates poppler-glib-demo to test PopplerAnnotStamp including the custom image support.


For reference, below is commit that improved core poppler stamp support and added corresponding Qt binding:
Improve support for custom stamp annotations

Merge request reports