poppler-annot.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  1. /* poppler-annot.h: glib interface to poppler
  2. *
  3. * Copyright (C) 2007 Inigo Martinez <inigomartinez@gmail.com>
  4. * Copyright (C) 2009 Carlos Garcia Campos <carlosgc@gnome.org>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2, or (at your option)
  9. * any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
  19. */
  20. #ifndef __POPPLER_ANNOT_H__
  21. #define __POPPLER_ANNOT_H__
  22. #include <glib-object.h>
  23. #include "poppler.h"
  24. G_BEGIN_DECLS
  25. #define POPPLER_TYPE_ANNOT (poppler_annot_get_type())
  26. #define POPPLER_ANNOT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), POPPLER_TYPE_ANNOT, PopplerAnnot))
  27. #define POPPLER_IS_ANNOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), POPPLER_TYPE_ANNOT))
  28. #define POPPLER_TYPE_ANNOT_MARKUP (poppler_annot_markup_get_type())
  29. #define POPPLER_ANNOT_MARKUP(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), POPPLER_TYPE_ANNOT_MARKUP, PopplerAnnotMarkup))
  30. #define POPPLER_IS_ANNOT_MARKUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), POPPLER_TYPE_ANNOT_MARKUP))
  31. #define POPPLER_TYPE_ANNOT_TEXT (poppler_annot_text_get_type())
  32. #define POPPLER_ANNOT_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), POPPLER_TYPE_ANNOT_TEXT, PopplerAnnotText))
  33. #define POPPLER_IS_ANNOT_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), POPPLER_TYPE_ANNOT_TEXT))
  34. #define POPPLER_TYPE_ANNOT_TEXT_MARKUP (poppler_annot_text_markup_get_type())
  35. #define POPPLER_ANNOT_TEXT_MARKUP(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), POPPLER_TYPE_ANNOT_TEXT_MARKUP, PopplerAnnotTextMarkup))
  36. #define POPPLER_IS_ANNOT_TEXT_MARKUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), POPPLER_TYPE_ANNOT_TEXT_MARKUP))
  37. #define POPPLER_TYPE_ANNOT_FREE_TEXT (poppler_annot_free_text_get_type())
  38. #define POPPLER_ANNOT_FREE_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), POPPLER_TYPE_ANNOT_FREE_TEXT, PopplerAnnotFreeText))
  39. #define POPPLER_IS_ANNOT_FREE_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), POPPLER_TYPE_ANNOT_FREE_TEXT))
  40. #define POPPLER_TYPE_ANNOT_FILE_ATTACHMENT (poppler_annot_file_attachment_get_type())
  41. #define POPPLER_ANNOT_FILE_ATTACHMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), POPPLER_TYPE_ANNOT_MARKUP, PopplerAnnotFileAttachment))
  42. #define POPPLER_IS_ANNOT_FILE_ATTACHMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), POPPLER_TYPE_ANNOT_FILE_ATTACHMENT))
  43. #define POPPLER_TYPE_ANNOT_MOVIE (poppler_annot_movie_get_type())
  44. #define POPPLER_ANNOT_MOVIE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), POPPLER_TYPE_ANNOT_MOVIE, PopplerAnnotMovie))
  45. #define POPPLER_IS_ANNOT_MOVIE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), POPPLER_TYPE_ANNOT_MOVIE))
  46. #define POPPLER_TYPE_ANNOT_SCREEN (poppler_annot_screen_get_type())
  47. #define POPPLER_ANNOT_SCREEN(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), POPPLER_TYPE_ANNOT_SCREEN, PopplerAnnotScreen))
  48. #define POPPLER_IS_ANNOT_SCREEN(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), POPPLER_TYPE_ANNOT_SCREEN))
  49. #define POPPLER_TYPE_ANNOT_LINE (poppler_annot_line_get_type())
  50. #define POPPLER_ANNOT_LINE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), POPPLER_TYPE_ANNOT_LINE, PopplerAnnotLine))
  51. #define POPPLER_IS_ANNOT_LINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), POPPLER_TYPE_ANNOT_LINE))
  52. #define POPPLER_TYPE_ANNOT_CALLOUT_LINE (poppler_annot_callout_line_get_type())
  53. #define POPPLER_TYPE_ANNOT_CIRCLE (poppler_annot_circle_get_type())
  54. #define POPPLER_ANNOT_CIRCLE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), POPPLER_TYPE_ANNOT_CIRCLE, PopplerAnnotCircle))
  55. #define POPPLER_IS_ANNOT_CIRCLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), POPPLER_TYPE_ANNOT_CIRCLE))
  56. #define POPPLER_TYPE_ANNOT_SQUARE (poppler_annot_square_get_type())
  57. #define POPPLER_ANNOT_SQUARE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), POPPLER_TYPE_ANNOT_SQUARE, PopplerAnnotSquare))
  58. #define POPPLER_IS_ANNOT_SQUARE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), POPPLER_TYPE_ANNOT_SQUARE))
  59. #define POPPLER_TYPE_ANNOT_STAMP (poppler_annot_stamp_get_type())
  60. #define POPPLER_ANNOT_STAMP(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), POPPLER_TYPE_ANNOT_STAMP, PopplerAnnotStamp))
  61. #define POPPLER_IS_ANNOT_STAMP(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), POPPLER_TYPE_ANNOT_STAMP))
  62. typedef enum
  63. {
  64. POPPLER_ANNOT_UNKNOWN,
  65. POPPLER_ANNOT_TEXT,
  66. POPPLER_ANNOT_LINK,
  67. POPPLER_ANNOT_FREE_TEXT,
  68. POPPLER_ANNOT_LINE,
  69. POPPLER_ANNOT_SQUARE,
  70. POPPLER_ANNOT_CIRCLE,
  71. POPPLER_ANNOT_POLYGON,
  72. POPPLER_ANNOT_POLY_LINE,
  73. POPPLER_ANNOT_HIGHLIGHT,
  74. POPPLER_ANNOT_UNDERLINE,
  75. POPPLER_ANNOT_SQUIGGLY,
  76. POPPLER_ANNOT_STRIKE_OUT,
  77. POPPLER_ANNOT_STAMP,
  78. POPPLER_ANNOT_CARET,
  79. POPPLER_ANNOT_INK,
  80. POPPLER_ANNOT_POPUP,
  81. POPPLER_ANNOT_FILE_ATTACHMENT,
  82. POPPLER_ANNOT_SOUND,
  83. POPPLER_ANNOT_MOVIE,
  84. POPPLER_ANNOT_WIDGET,
  85. POPPLER_ANNOT_SCREEN,
  86. POPPLER_ANNOT_PRINTER_MARK,
  87. POPPLER_ANNOT_TRAP_NET,
  88. POPPLER_ANNOT_WATERMARK,
  89. POPPLER_ANNOT_3D
  90. } PopplerAnnotType;
  91. typedef enum /*< flags >*/
  92. {
  93. POPPLER_ANNOT_FLAG_UNKNOWN = 0,
  94. POPPLER_ANNOT_FLAG_INVISIBLE = 1 << 0,
  95. POPPLER_ANNOT_FLAG_HIDDEN = 1 << 1,
  96. POPPLER_ANNOT_FLAG_PRINT = 1 << 2,
  97. POPPLER_ANNOT_FLAG_NO_ZOOM = 1 << 3,
  98. POPPLER_ANNOT_FLAG_NO_ROTATE = 1 << 4,
  99. POPPLER_ANNOT_FLAG_NO_VIEW = 1 << 5,
  100. POPPLER_ANNOT_FLAG_READ_ONLY = 1 << 6,
  101. POPPLER_ANNOT_FLAG_LOCKED = 1 << 7,
  102. POPPLER_ANNOT_FLAG_TOGGLE_NO_VIEW = 1 << 8,
  103. POPPLER_ANNOT_FLAG_LOCKED_CONTENTS = 1 << 9
  104. } PopplerAnnotFlag;
  105. typedef enum
  106. {
  107. POPPLER_ANNOT_MARKUP_REPLY_TYPE_R,
  108. POPPLER_ANNOT_MARKUP_REPLY_TYPE_GROUP
  109. } PopplerAnnotMarkupReplyType;
  110. typedef enum
  111. {
  112. POPPLER_ANNOT_EXTERNAL_DATA_MARKUP_3D,
  113. POPPLER_ANNOT_EXTERNAL_DATA_MARKUP_UNKNOWN
  114. } PopplerAnnotExternalDataType;
  115. #define POPPLER_ANNOT_TEXT_ICON_NOTE "Note"
  116. #define POPPLER_ANNOT_TEXT_ICON_COMMENT "Comment"
  117. #define POPPLER_ANNOT_TEXT_ICON_KEY "Key"
  118. #define POPPLER_ANNOT_TEXT_ICON_HELP "Help"
  119. #define POPPLER_ANNOT_TEXT_ICON_NEW_PARAGRAPH "NewParagraph"
  120. #define POPPLER_ANNOT_TEXT_ICON_PARAGRAPH "Paragraph"
  121. #define POPPLER_ANNOT_TEXT_ICON_INSERT "Insert"
  122. #define POPPLER_ANNOT_TEXT_ICON_CROSS "Cross"
  123. #define POPPLER_ANNOT_TEXT_ICON_CIRCLE "Circle"
  124. typedef enum
  125. {
  126. POPPLER_ANNOT_TEXT_STATE_MARKED,
  127. POPPLER_ANNOT_TEXT_STATE_UNMARKED,
  128. POPPLER_ANNOT_TEXT_STATE_ACCEPTED,
  129. POPPLER_ANNOT_TEXT_STATE_REJECTED,
  130. POPPLER_ANNOT_TEXT_STATE_CANCELLED,
  131. POPPLER_ANNOT_TEXT_STATE_COMPLETED,
  132. POPPLER_ANNOT_TEXT_STATE_NONE,
  133. POPPLER_ANNOT_TEXT_STATE_UNKNOWN
  134. } PopplerAnnotTextState;
  135. typedef enum
  136. {
  137. POPPLER_ANNOT_FREE_TEXT_QUADDING_LEFT_JUSTIFIED,
  138. POPPLER_ANNOT_FREE_TEXT_QUADDING_CENTERED,
  139. POPPLER_ANNOT_FREE_TEXT_QUADDING_RIGHT_JUSTIFIED
  140. } PopplerAnnotFreeTextQuadding;
  141. struct _PopplerAnnotCalloutLine
  142. {
  143. gboolean multiline;
  144. gdouble x1;
  145. gdouble y1;
  146. gdouble x2;
  147. gdouble y2;
  148. gdouble x3;
  149. gdouble y3;
  150. };
  151. typedef enum
  152. {
  153. POPPLER_ANNOT_STAMP_ICON_UNKNOWN = 0,
  154. POPPLER_ANNOT_STAMP_ICON_APPROVED,
  155. POPPLER_ANNOT_STAMP_ICON_AS_IS,
  156. POPPLER_ANNOT_STAMP_ICON_CONFIDENTIAL,
  157. POPPLER_ANNOT_STAMP_ICON_FINAL,
  158. POPPLER_ANNOT_STAMP_ICON_EXPERIMENTAL,
  159. POPPLER_ANNOT_STAMP_ICON_EXPIRED,
  160. POPPLER_ANNOT_STAMP_ICON_NOT_APPROVED,
  161. POPPLER_ANNOT_STAMP_ICON_NOT_FOR_PUBLIC_RELEASE,
  162. POPPLER_ANNOT_STAMP_ICON_SOLD,
  163. POPPLER_ANNOT_STAMP_ICON_DEPARTMENTAL,
  164. POPPLER_ANNOT_STAMP_ICON_FOR_COMMENT,
  165. POPPLER_ANNOT_STAMP_ICON_FOR_PUBLIC_RELEASE,
  166. POPPLER_ANNOT_STAMP_ICON_TOP_SECRET,
  167. POPPLER_ANNOT_STAMP_ICON_NONE
  168. } PopplerAnnotStampIcon;
  169. POPPLER_PUBLIC
  170. GType poppler_annot_get_type(void) G_GNUC_CONST;
  171. POPPLER_PUBLIC
  172. PopplerAnnotType poppler_annot_get_annot_type(PopplerAnnot *poppler_annot);
  173. POPPLER_PUBLIC
  174. gchar *poppler_annot_get_contents(PopplerAnnot *poppler_annot);
  175. POPPLER_PUBLIC
  176. void poppler_annot_set_contents(PopplerAnnot *poppler_annot, const gchar *contents);
  177. POPPLER_PUBLIC
  178. gchar *poppler_annot_get_name(PopplerAnnot *poppler_annot);
  179. POPPLER_PUBLIC
  180. gchar *poppler_annot_get_modified(PopplerAnnot *poppler_annot);
  181. POPPLER_PUBLIC
  182. PopplerAnnotFlag poppler_annot_get_flags(PopplerAnnot *poppler_annot);
  183. POPPLER_PUBLIC
  184. void poppler_annot_set_flags(PopplerAnnot *poppler_annot, PopplerAnnotFlag flags);
  185. POPPLER_PUBLIC
  186. PopplerColor *poppler_annot_get_color(PopplerAnnot *poppler_annot);
  187. POPPLER_PUBLIC
  188. void poppler_annot_set_color(PopplerAnnot *poppler_annot, PopplerColor *poppler_color);
  189. POPPLER_PUBLIC
  190. gint poppler_annot_get_page_index(PopplerAnnot *poppler_annot);
  191. POPPLER_PUBLIC
  192. void poppler_annot_get_rectangle(PopplerAnnot *poppler_annot, PopplerRectangle *poppler_rect);
  193. POPPLER_PUBLIC
  194. void poppler_annot_set_rectangle(PopplerAnnot *poppler_annot, PopplerRectangle *poppler_rect);
  195. /* PopplerAnnotMarkup */
  196. POPPLER_PUBLIC
  197. GType poppler_annot_markup_get_type(void) G_GNUC_CONST;
  198. POPPLER_PUBLIC
  199. gchar *poppler_annot_markup_get_label(PopplerAnnotMarkup *poppler_annot);
  200. POPPLER_PUBLIC
  201. void poppler_annot_markup_set_label(PopplerAnnotMarkup *poppler_annot, const gchar *label);
  202. POPPLER_PUBLIC
  203. gboolean poppler_annot_markup_has_popup(PopplerAnnotMarkup *poppler_annot);
  204. POPPLER_PUBLIC
  205. void poppler_annot_markup_set_popup(PopplerAnnotMarkup *poppler_annot, PopplerRectangle *popup_rect);
  206. POPPLER_PUBLIC
  207. gboolean poppler_annot_markup_get_popup_is_open(PopplerAnnotMarkup *poppler_annot);
  208. POPPLER_PUBLIC
  209. void poppler_annot_markup_set_popup_is_open(PopplerAnnotMarkup *poppler_annot, gboolean is_open);
  210. POPPLER_PUBLIC
  211. gboolean poppler_annot_markup_get_popup_rectangle(PopplerAnnotMarkup *poppler_annot, PopplerRectangle *poppler_rect);
  212. POPPLER_PUBLIC
  213. void poppler_annot_markup_set_popup_rectangle(PopplerAnnotMarkup *poppler_annot, PopplerRectangle *poppler_rect);
  214. POPPLER_PUBLIC
  215. gdouble poppler_annot_markup_get_opacity(PopplerAnnotMarkup *poppler_annot);
  216. POPPLER_PUBLIC
  217. void poppler_annot_markup_set_opacity(PopplerAnnotMarkup *poppler_annot, gdouble opacity);
  218. POPPLER_PUBLIC
  219. GDate *poppler_annot_markup_get_date(PopplerAnnotMarkup *poppler_annot);
  220. POPPLER_PUBLIC
  221. gchar *poppler_annot_markup_get_subject(PopplerAnnotMarkup *poppler_annot);
  222. POPPLER_PUBLIC
  223. PopplerAnnotMarkupReplyType poppler_annot_markup_get_reply_to(PopplerAnnotMarkup *poppler_annot);
  224. POPPLER_PUBLIC
  225. PopplerAnnotExternalDataType poppler_annot_markup_get_external_data(PopplerAnnotMarkup *poppler_annot);
  226. /* PopplerAnnotText */
  227. POPPLER_PUBLIC
  228. GType poppler_annot_text_get_type(void) G_GNUC_CONST;
  229. POPPLER_PUBLIC
  230. PopplerAnnot *poppler_annot_text_new(PopplerDocument *doc, PopplerRectangle *rect);
  231. POPPLER_PUBLIC
  232. gboolean poppler_annot_text_get_is_open(PopplerAnnotText *poppler_annot);
  233. POPPLER_PUBLIC
  234. void poppler_annot_text_set_is_open(PopplerAnnotText *poppler_annot, gboolean is_open);
  235. POPPLER_PUBLIC
  236. gchar *poppler_annot_text_get_icon(PopplerAnnotText *poppler_annot);
  237. POPPLER_PUBLIC
  238. void poppler_annot_text_set_icon(PopplerAnnotText *poppler_annot, const gchar *icon);
  239. POPPLER_PUBLIC
  240. PopplerAnnotTextState poppler_annot_text_get_state(PopplerAnnotText *poppler_annot);
  241. /* PopplerAnnotTextMarkup */
  242. POPPLER_PUBLIC
  243. GType poppler_annot_text_markup_get_type(void) G_GNUC_CONST;
  244. POPPLER_PUBLIC
  245. PopplerAnnot *poppler_annot_text_markup_new_highlight(PopplerDocument *doc, PopplerRectangle *rect, GArray *quadrilaterals);
  246. POPPLER_PUBLIC
  247. PopplerAnnot *poppler_annot_text_markup_new_squiggly(PopplerDocument *doc, PopplerRectangle *rect, GArray *quadrilaterals);
  248. POPPLER_PUBLIC
  249. PopplerAnnot *poppler_annot_text_markup_new_strikeout(PopplerDocument *doc, PopplerRectangle *rect, GArray *quadrilaterals);
  250. POPPLER_PUBLIC
  251. PopplerAnnot *poppler_annot_text_markup_new_underline(PopplerDocument *doc, PopplerRectangle *rect, GArray *quadrilaterals);
  252. POPPLER_PUBLIC
  253. void poppler_annot_text_markup_set_quadrilaterals(PopplerAnnotTextMarkup *poppler_annot, GArray *quadrilaterals);
  254. POPPLER_PUBLIC
  255. GArray *poppler_annot_text_markup_get_quadrilaterals(PopplerAnnotTextMarkup *poppler_annot);
  256. /* PopplerAnnotFreeText */
  257. POPPLER_PUBLIC
  258. GType poppler_annot_free_text_get_type(void) G_GNUC_CONST;
  259. POPPLER_PUBLIC
  260. PopplerAnnotFreeTextQuadding poppler_annot_free_text_get_quadding(PopplerAnnotFreeText *poppler_annot);
  261. POPPLER_PUBLIC
  262. PopplerAnnotCalloutLine *poppler_annot_free_text_get_callout_line(PopplerAnnotFreeText *poppler_annot);
  263. /* PopplerAnnotFileAttachment */
  264. POPPLER_PUBLIC
  265. GType poppler_annot_file_attachment_get_type(void) G_GNUC_CONST;
  266. POPPLER_PUBLIC
  267. PopplerAttachment *poppler_annot_file_attachment_get_attachment(PopplerAnnotFileAttachment *poppler_annot);
  268. POPPLER_PUBLIC
  269. gchar *poppler_annot_file_attachment_get_name(PopplerAnnotFileAttachment *poppler_annot);
  270. /* PopplerAnnotMovie */
  271. POPPLER_PUBLIC
  272. GType poppler_annot_movie_get_type(void) G_GNUC_CONST;
  273. POPPLER_PUBLIC
  274. gchar *poppler_annot_movie_get_title(PopplerAnnotMovie *poppler_annot);
  275. POPPLER_PUBLIC
  276. PopplerMovie *poppler_annot_movie_get_movie(PopplerAnnotMovie *poppler_annot);
  277. /* PopplerAnnotScreen */
  278. POPPLER_PUBLIC
  279. GType poppler_annot_screen_get_type(void) G_GNUC_CONST;
  280. POPPLER_PUBLIC
  281. PopplerAction *poppler_annot_screen_get_action(PopplerAnnotScreen *poppler_annot);
  282. /* PopplerAnnotLine */
  283. POPPLER_PUBLIC
  284. GType poppler_annot_line_get_type(void) G_GNUC_CONST;
  285. POPPLER_PUBLIC
  286. PopplerAnnot *poppler_annot_line_new(PopplerDocument *doc, PopplerRectangle *rect, PopplerPoint *start, PopplerPoint *end);
  287. POPPLER_PUBLIC
  288. void poppler_annot_line_set_vertices(PopplerAnnotLine *poppler_annot, PopplerPoint *start, PopplerPoint *end);
  289. /* PopplerAnnotCalloutLine */
  290. POPPLER_PUBLIC
  291. GType poppler_annot_callout_line_get_type(void) G_GNUC_CONST;
  292. POPPLER_PUBLIC
  293. PopplerAnnotCalloutLine *poppler_annot_callout_line_new(void);
  294. POPPLER_PUBLIC
  295. PopplerAnnotCalloutLine *poppler_annot_callout_line_copy(PopplerAnnotCalloutLine *callout);
  296. POPPLER_PUBLIC
  297. void poppler_annot_callout_line_free(PopplerAnnotCalloutLine *callout);
  298. /* PopplerAnnotCircle */
  299. POPPLER_PUBLIC
  300. GType poppler_annot_circle_get_type(void) G_GNUC_CONST;
  301. POPPLER_PUBLIC
  302. PopplerAnnot *poppler_annot_circle_new(PopplerDocument *doc, PopplerRectangle *rect);
  303. POPPLER_PUBLIC
  304. void poppler_annot_circle_set_interior_color(PopplerAnnotCircle *poppler_annot, PopplerColor *poppler_color);
  305. POPPLER_PUBLIC
  306. PopplerColor *poppler_annot_circle_get_interior_color(PopplerAnnotCircle *poppler_annot);
  307. /* PopplerAnnotGeometry */
  308. POPPLER_PUBLIC
  309. GType poppler_annot_square_get_type(void) G_GNUC_CONST;
  310. POPPLER_PUBLIC
  311. PopplerAnnot *poppler_annot_square_new(PopplerDocument *doc, PopplerRectangle *rect);
  312. POPPLER_PUBLIC
  313. void poppler_annot_square_set_interior_color(PopplerAnnotSquare *poppler_annot, PopplerColor *poppler_color);
  314. POPPLER_PUBLIC
  315. PopplerColor *poppler_annot_square_get_interior_color(PopplerAnnotSquare *poppler_annot);
  316. /* PopplerAnnotStamp */
  317. POPPLER_PUBLIC
  318. GType poppler_annot_stamp_get_type(void) G_GNUC_CONST;
  319. POPPLER_PUBLIC
  320. PopplerAnnot *poppler_annot_stamp_new(PopplerDocument *doc, PopplerRectangle *rect);
  321. POPPLER_PUBLIC
  322. PopplerAnnotStampIcon poppler_annot_stamp_get_icon(PopplerAnnotStamp *poppler_annot);
  323. POPPLER_PUBLIC
  324. void poppler_annot_stamp_set_icon(PopplerAnnotStamp *poppler_annot, PopplerAnnotStampIcon icon);
  325. POPPLER_PUBLIC
  326. gboolean poppler_annot_stamp_set_custom_image(PopplerAnnotStamp *poppler_annot, cairo_surface_t *image, GError **error);
  327. G_END_DECLS
  328. #endif /* __POPPLER_ANNOT_H__ */