poppler-structure-element.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. /* poppler-structure-element.h: glib interface to poppler
  2. *
  3. * Copyright (C) 2013 Igalia S.L.
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2, or (at your option)
  8. * any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
  18. */
  19. #ifndef __POPPLER_STRUCTURE_ELEMENT_H__
  20. #define __POPPLER_STRUCTURE_ELEMENT_H__
  21. #include <glib-object.h>
  22. #include "poppler.h"
  23. G_BEGIN_DECLS
  24. #define POPPLER_TYPE_STRUCTURE_ELEMENT (poppler_structure_element_get_type())
  25. #define POPPLER_STRUCTURE_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), POPPLER_TYPE_STRUCTURE_ELEMENT, PopplerStructureElement))
  26. #define POPPLER_IS_STRUCTURE_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), POPPLER_TYPE_STRUCTURE_ELEMENT))
  27. /**
  28. * PopplerStructureElementKind:
  29. */
  30. typedef enum
  31. {
  32. POPPLER_STRUCTURE_ELEMENT_CONTENT,
  33. POPPLER_STRUCTURE_ELEMENT_OBJECT_REFERENCE,
  34. POPPLER_STRUCTURE_ELEMENT_DOCUMENT,
  35. POPPLER_STRUCTURE_ELEMENT_PART,
  36. POPPLER_STRUCTURE_ELEMENT_ARTICLE,
  37. POPPLER_STRUCTURE_ELEMENT_SECTION,
  38. POPPLER_STRUCTURE_ELEMENT_DIV,
  39. POPPLER_STRUCTURE_ELEMENT_SPAN,
  40. POPPLER_STRUCTURE_ELEMENT_QUOTE,
  41. POPPLER_STRUCTURE_ELEMENT_NOTE,
  42. POPPLER_STRUCTURE_ELEMENT_REFERENCE,
  43. POPPLER_STRUCTURE_ELEMENT_BIBENTRY,
  44. POPPLER_STRUCTURE_ELEMENT_CODE,
  45. POPPLER_STRUCTURE_ELEMENT_LINK,
  46. POPPLER_STRUCTURE_ELEMENT_ANNOT,
  47. POPPLER_STRUCTURE_ELEMENT_BLOCKQUOTE,
  48. POPPLER_STRUCTURE_ELEMENT_CAPTION,
  49. POPPLER_STRUCTURE_ELEMENT_NONSTRUCT,
  50. POPPLER_STRUCTURE_ELEMENT_TOC,
  51. POPPLER_STRUCTURE_ELEMENT_TOC_ITEM,
  52. POPPLER_STRUCTURE_ELEMENT_INDEX,
  53. POPPLER_STRUCTURE_ELEMENT_PRIVATE,
  54. POPPLER_STRUCTURE_ELEMENT_PARAGRAPH,
  55. POPPLER_STRUCTURE_ELEMENT_HEADING,
  56. POPPLER_STRUCTURE_ELEMENT_HEADING_1,
  57. POPPLER_STRUCTURE_ELEMENT_HEADING_2,
  58. POPPLER_STRUCTURE_ELEMENT_HEADING_3,
  59. POPPLER_STRUCTURE_ELEMENT_HEADING_4,
  60. POPPLER_STRUCTURE_ELEMENT_HEADING_5,
  61. POPPLER_STRUCTURE_ELEMENT_HEADING_6,
  62. POPPLER_STRUCTURE_ELEMENT_LIST,
  63. POPPLER_STRUCTURE_ELEMENT_LIST_ITEM,
  64. POPPLER_STRUCTURE_ELEMENT_LIST_LABEL,
  65. POPPLER_STRUCTURE_ELEMENT_LIST_BODY,
  66. POPPLER_STRUCTURE_ELEMENT_TABLE,
  67. POPPLER_STRUCTURE_ELEMENT_TABLE_ROW,
  68. POPPLER_STRUCTURE_ELEMENT_TABLE_HEADING,
  69. POPPLER_STRUCTURE_ELEMENT_TABLE_DATA,
  70. POPPLER_STRUCTURE_ELEMENT_TABLE_HEADER,
  71. POPPLER_STRUCTURE_ELEMENT_TABLE_FOOTER,
  72. POPPLER_STRUCTURE_ELEMENT_TABLE_BODY,
  73. POPPLER_STRUCTURE_ELEMENT_RUBY,
  74. POPPLER_STRUCTURE_ELEMENT_RUBY_BASE_TEXT,
  75. POPPLER_STRUCTURE_ELEMENT_RUBY_ANNOT_TEXT,
  76. POPPLER_STRUCTURE_ELEMENT_RUBY_PUNCTUATION,
  77. POPPLER_STRUCTURE_ELEMENT_WARICHU,
  78. POPPLER_STRUCTURE_ELEMENT_WARICHU_TEXT,
  79. POPPLER_STRUCTURE_ELEMENT_WARICHU_PUNCTUATION,
  80. POPPLER_STRUCTURE_ELEMENT_FIGURE,
  81. POPPLER_STRUCTURE_ELEMENT_FORMULA,
  82. POPPLER_STRUCTURE_ELEMENT_FORM,
  83. } PopplerStructureElementKind;
  84. /**
  85. * PopplerStructureGetTextFlags:
  86. * @POPPLER_STRUCTURE_GET_TEXT_NONE: No flags.
  87. * @POPPLER_STRUCTURE_GET_TEXT_RECURSIVE: For non-leaf, non-content
  88. * elements, recursively obtain the text from all the elements
  89. * enclosed in the subtree.
  90. */
  91. typedef enum
  92. {
  93. POPPLER_STRUCTURE_GET_TEXT_NONE = 0,
  94. POPPLER_STRUCTURE_GET_TEXT_RECURSIVE = (1 << 0),
  95. } PopplerStructureGetTextFlags;
  96. /**
  97. * PopplerStructurePlacement:
  98. */
  99. typedef enum
  100. {
  101. POPPLER_STRUCTURE_PLACEMENT_BLOCK,
  102. POPPLER_STRUCTURE_PLACEMENT_INLINE,
  103. POPPLER_STRUCTURE_PLACEMENT_BEFORE,
  104. POPPLER_STRUCTURE_PLACEMENT_START,
  105. POPPLER_STRUCTURE_PLACEMENT_END,
  106. } PopplerStructurePlacement;
  107. /**
  108. * PopplerStructureWritingMode:
  109. */
  110. typedef enum
  111. {
  112. POPPLER_STRUCTURE_WRITING_MODE_LR_TB,
  113. POPPLER_STRUCTURE_WRITING_MODE_RL_TB,
  114. POPPLER_STRUCTURE_WRITING_MODE_TB_RL,
  115. } PopplerStructureWritingMode;
  116. /**
  117. * PopplerStructureBorderStyle:
  118. */
  119. typedef enum
  120. {
  121. POPPLER_STRUCTURE_BORDER_STYLE_NONE,
  122. POPPLER_STRUCTURE_BORDER_STYLE_HIDDEN,
  123. POPPLER_STRUCTURE_BORDER_STYLE_DOTTED,
  124. POPPLER_STRUCTURE_BORDER_STYLE_DASHED,
  125. POPPLER_STRUCTURE_BORDER_STYLE_SOLID,
  126. POPPLER_STRUCTURE_BORDER_STYLE_DOUBLE,
  127. POPPLER_STRUCTURE_BORDER_STYLE_GROOVE,
  128. POPPLER_STRUCTURE_BORDER_STYLE_INSET,
  129. POPPLER_STRUCTURE_BORDER_STYLE_OUTSET,
  130. } PopplerStructureBorderStyle;
  131. /**
  132. * PopplerStructureTextAlign:
  133. */
  134. typedef enum
  135. {
  136. POPPLER_STRUCTURE_TEXT_ALIGN_START,
  137. POPPLER_STRUCTURE_TEXT_ALIGN_CENTER,
  138. POPPLER_STRUCTURE_TEXT_ALIGN_END,
  139. POPPLER_STRUCTURE_TEXT_ALIGN_JUSTIFY,
  140. } PopplerStructureTextAlign;
  141. /**
  142. * PopplerStructureBlockAlign:
  143. */
  144. typedef enum
  145. {
  146. POPPLER_STRUCTURE_BLOCK_ALIGN_BEFORE,
  147. POPPLER_STRUCTURE_BLOCK_ALIGN_MIDDLE,
  148. POPPLER_STRUCTURE_BLOCK_ALIGN_AFTER,
  149. POPPLER_STRUCTURE_BLOCK_ALIGN_JUSTIFY,
  150. } PopplerStructureBlockAlign;
  151. /**
  152. * PopplerStructureInlineAlign:
  153. */
  154. typedef enum
  155. {
  156. POPPLER_STRUCTURE_INLINE_ALIGN_START,
  157. POPPLER_STRUCTURE_INLINE_ALIGN_CENTER,
  158. POPPLER_STRUCTURE_INLINE_ALIGN_END,
  159. } PopplerStructureInlineAlign;
  160. /**
  161. * PopplerStructureTextDecoration:
  162. */
  163. typedef enum
  164. {
  165. POPPLER_STRUCTURE_TEXT_DECORATION_NONE,
  166. POPPLER_STRUCTURE_TEXT_DECORATION_UNDERLINE,
  167. POPPLER_STRUCTURE_TEXT_DECORATION_OVERLINE,
  168. POPPLER_STRUCTURE_TEXT_DECORATION_LINETHROUGH,
  169. } PopplerStructureTextDecoration;
  170. /**
  171. * PopplerStructureRubyAlign:
  172. */
  173. typedef enum
  174. {
  175. POPPLER_STRUCTURE_RUBY_ALIGN_START,
  176. POPPLER_STRUCTURE_RUBY_ALIGN_CENTER,
  177. POPPLER_STRUCTURE_RUBY_ALIGN_END,
  178. POPPLER_STRUCTURE_RUBY_ALIGN_JUSTIFY,
  179. POPPLER_STRUCTURE_RUBY_ALIGN_DISTRIBUTE,
  180. } PopplerStructureRubyAlign;
  181. /**
  182. * PopplerStructureRubyPosition:
  183. */
  184. typedef enum
  185. {
  186. POPPLER_STRUCTURE_RUBY_POSITION_BEFORE,
  187. POPPLER_STRUCTURE_RUBY_POSITION_AFTER,
  188. POPPLER_STRUCTURE_RUBY_POSITION_WARICHU,
  189. POPPLER_STRUCTURE_RUBY_POSITION_INLINE,
  190. } PopplerStructureRubyPosition;
  191. /**
  192. * PopplerStructureGlyphOrientation:
  193. */
  194. typedef enum
  195. {
  196. POPPLER_STRUCTURE_GLYPH_ORIENTATION_AUTO,
  197. POPPLER_STRUCTURE_GLYPH_ORIENTATION_0 = POPPLER_STRUCTURE_GLYPH_ORIENTATION_AUTO,
  198. POPPLER_STRUCTURE_GLYPH_ORIENTATION_90,
  199. POPPLER_STRUCTURE_GLYPH_ORIENTATION_180,
  200. POPPLER_STRUCTURE_GLYPH_ORIENTATION_270,
  201. } PopplerStructureGlyphOrientation;
  202. /**
  203. * PopplerStructureListNumbering:
  204. */
  205. typedef enum
  206. {
  207. POPPLER_STRUCTURE_LIST_NUMBERING_NONE,
  208. POPPLER_STRUCTURE_LIST_NUMBERING_DISC,
  209. POPPLER_STRUCTURE_LIST_NUMBERING_CIRCLE,
  210. POPPLER_STRUCTURE_LIST_NUMBERING_SQUARE,
  211. POPPLER_STRUCTURE_LIST_NUMBERING_DECIMAL,
  212. POPPLER_STRUCTURE_LIST_NUMBERING_UPPER_ROMAN,
  213. POPPLER_STRUCTURE_LIST_NUMBERING_LOWER_ROMAN,
  214. POPPLER_STRUCTURE_LIST_NUMBERING_UPPER_ALPHA,
  215. POPPLER_STRUCTURE_LIST_NUMBERING_LOWER_ALPHA,
  216. } PopplerStructureListNumbering;
  217. /**
  218. * PopplerStructureFormRole:
  219. */
  220. typedef enum
  221. {
  222. POPPLER_STRUCTURE_FORM_ROLE_UNDEFINED,
  223. POPPLER_STRUCTURE_FORM_ROLE_RADIO_BUTTON,
  224. POPPLER_STRUCTURE_FORM_ROLE_PUSH_BUTTON,
  225. POPPLER_STRUCTURE_FORM_ROLE_TEXT_VALUE,
  226. POPPLER_STRUCTURE_FORM_ROLE_CHECKBOX,
  227. } PopplerStructureFormRole;
  228. /**
  229. * PopplerStructureFormState:
  230. */
  231. typedef enum
  232. {
  233. POPPLER_STRUCTURE_FORM_STATE_ON,
  234. POPPLER_STRUCTURE_FORM_STATE_OFF,
  235. POPPLER_STRUCTURE_FORM_STATE_NEUTRAL,
  236. } PopplerStructureFormState;
  237. /**
  238. * PopplerStructureTableScope:
  239. */
  240. typedef enum
  241. {
  242. POPPLER_STRUCTURE_TABLE_SCOPE_ROW,
  243. POPPLER_STRUCTURE_TABLE_SCOPE_COLUMN,
  244. POPPLER_STRUCTURE_TABLE_SCOPE_BOTH,
  245. } PopplerStructureTableScope;
  246. POPPLER_PUBLIC
  247. GType poppler_structure_element_get_type(void) G_GNUC_CONST;
  248. POPPLER_PUBLIC
  249. PopplerStructureElementKind poppler_structure_element_get_kind(PopplerStructureElement *poppler_structure_element);
  250. POPPLER_PUBLIC
  251. gint poppler_structure_element_get_page(PopplerStructureElement *poppler_structure_element);
  252. POPPLER_PUBLIC
  253. gboolean poppler_structure_element_is_content(PopplerStructureElement *poppler_structure_element);
  254. POPPLER_PUBLIC
  255. gboolean poppler_structure_element_is_inline(PopplerStructureElement *poppler_structure_element);
  256. POPPLER_PUBLIC
  257. gboolean poppler_structure_element_is_block(PopplerStructureElement *poppler_structure_element);
  258. POPPLER_PUBLIC
  259. gboolean poppler_structure_element_is_grouping(PopplerStructureElement *poppler_structure_element);
  260. POPPLER_PUBLIC
  261. gchar *poppler_structure_element_get_id(PopplerStructureElement *poppler_structure_element);
  262. POPPLER_PUBLIC
  263. gchar *poppler_structure_element_get_title(PopplerStructureElement *poppler_structure_element);
  264. POPPLER_PUBLIC
  265. gchar *poppler_structure_element_get_abbreviation(PopplerStructureElement *poppler_structure_element);
  266. POPPLER_PUBLIC
  267. gchar *poppler_structure_element_get_language(PopplerStructureElement *poppler_structure_element);
  268. POPPLER_PUBLIC
  269. gchar *poppler_structure_element_get_text(PopplerStructureElement *poppler_structure_element, PopplerStructureGetTextFlags flags);
  270. POPPLER_PUBLIC
  271. gchar *poppler_structure_element_get_alt_text(PopplerStructureElement *poppler_structure_element);
  272. POPPLER_PUBLIC
  273. gchar *poppler_structure_element_get_actual_text(PopplerStructureElement *poppler_structure_element);
  274. POPPLER_PUBLIC
  275. PopplerTextSpan **poppler_structure_element_get_text_spans(PopplerStructureElement *poppler_structure_element, guint *n_text_spans);
  276. POPPLER_PUBLIC
  277. PopplerStructurePlacement poppler_structure_element_get_placement(PopplerStructureElement *poppler_structure_element);
  278. POPPLER_PUBLIC
  279. PopplerStructureWritingMode poppler_structure_element_get_writing_mode(PopplerStructureElement *poppler_structure_element);
  280. POPPLER_PUBLIC
  281. gboolean poppler_structure_element_get_background_color(PopplerStructureElement *poppler_structure_element, PopplerColor *color);
  282. POPPLER_PUBLIC
  283. gboolean poppler_structure_element_get_border_color(PopplerStructureElement *poppler_structure_element, PopplerColor *colors);
  284. POPPLER_PUBLIC
  285. void poppler_structure_element_get_border_style(PopplerStructureElement *poppler_structure_element, PopplerStructureBorderStyle *border_styles);
  286. POPPLER_PUBLIC
  287. gboolean poppler_structure_element_get_border_thickness(PopplerStructureElement *poppler_structure_element, gdouble *border_thicknesses);
  288. POPPLER_PUBLIC
  289. void poppler_structure_element_get_padding(PopplerStructureElement *poppler_structure_element, gdouble *paddings);
  290. POPPLER_PUBLIC
  291. gboolean poppler_structure_element_get_color(PopplerStructureElement *poppler_structure_element, PopplerColor *color);
  292. POPPLER_PUBLIC
  293. gdouble poppler_structure_element_get_space_before(PopplerStructureElement *poppler_structure_element);
  294. POPPLER_PUBLIC
  295. gdouble poppler_structure_element_get_space_after(PopplerStructureElement *poppler_structure_element);
  296. POPPLER_PUBLIC
  297. gdouble poppler_structure_element_get_start_indent(PopplerStructureElement *poppler_structure_element);
  298. POPPLER_PUBLIC
  299. gdouble poppler_structure_element_get_end_indent(PopplerStructureElement *poppler_structure_element);
  300. POPPLER_PUBLIC
  301. gdouble poppler_structure_element_get_text_indent(PopplerStructureElement *poppler_structure_element);
  302. POPPLER_PUBLIC
  303. PopplerStructureTextAlign poppler_structure_element_get_text_align(PopplerStructureElement *poppler_structure_element);
  304. POPPLER_PUBLIC
  305. gboolean poppler_structure_element_get_bounding_box(PopplerStructureElement *poppler_structure_element, PopplerRectangle *bounding_box);
  306. POPPLER_PUBLIC
  307. gdouble poppler_structure_element_get_width(PopplerStructureElement *poppler_structure_element);
  308. POPPLER_PUBLIC
  309. gdouble poppler_structure_element_get_height(PopplerStructureElement *poppler_structure_element);
  310. POPPLER_PUBLIC
  311. PopplerStructureBlockAlign poppler_structure_element_get_block_align(PopplerStructureElement *poppler_structure_element);
  312. POPPLER_PUBLIC
  313. PopplerStructureInlineAlign poppler_structure_element_get_inline_align(PopplerStructureElement *poppler_structure_element);
  314. POPPLER_PUBLIC
  315. void poppler_structure_element_get_table_border_style(PopplerStructureElement *poppler_structure_element, PopplerStructureBorderStyle *border_styles);
  316. POPPLER_PUBLIC
  317. void poppler_structure_element_get_table_padding(PopplerStructureElement *poppler_structure_element, gdouble *paddings);
  318. POPPLER_PUBLIC
  319. gdouble poppler_structure_element_get_baseline_shift(PopplerStructureElement *poppler_structure_element);
  320. POPPLER_PUBLIC
  321. gdouble poppler_structure_element_get_line_height(PopplerStructureElement *poppler_structure_element);
  322. POPPLER_PUBLIC
  323. gboolean poppler_structure_element_get_text_decoration_color(PopplerStructureElement *poppler_structure_element, PopplerColor *color);
  324. POPPLER_PUBLIC
  325. gdouble poppler_structure_element_get_text_decoration_thickness(PopplerStructureElement *poppler_structure_element);
  326. POPPLER_PUBLIC
  327. PopplerStructureTextDecoration poppler_structure_element_get_text_decoration_type(PopplerStructureElement *poppler_structure_element);
  328. POPPLER_PUBLIC
  329. PopplerStructureRubyAlign poppler_structure_element_get_ruby_align(PopplerStructureElement *poppler_structure_element);
  330. POPPLER_PUBLIC
  331. PopplerStructureRubyPosition poppler_structure_element_get_ruby_position(PopplerStructureElement *poppler_structure_element);
  332. POPPLER_PUBLIC
  333. PopplerStructureGlyphOrientation poppler_structure_element_get_glyph_orientation(PopplerStructureElement *poppler_structure_element);
  334. POPPLER_PUBLIC
  335. guint poppler_structure_element_get_column_count(PopplerStructureElement *poppler_structure_element);
  336. POPPLER_PUBLIC
  337. gdouble *poppler_structure_element_get_column_gaps(PopplerStructureElement *poppler_structure_element, guint *n_values);
  338. POPPLER_PUBLIC
  339. gdouble *poppler_structure_element_get_column_widths(PopplerStructureElement *poppler_structure_element, guint *n_values);
  340. POPPLER_PUBLIC
  341. PopplerStructureListNumbering poppler_structure_element_get_list_numbering(PopplerStructureElement *poppler_structure_element);
  342. POPPLER_PUBLIC
  343. PopplerStructureFormRole poppler_structure_element_get_form_role(PopplerStructureElement *poppler_structure_element);
  344. POPPLER_PUBLIC
  345. PopplerStructureFormState poppler_structure_element_get_form_state(PopplerStructureElement *poppler_structure_element);
  346. POPPLER_PUBLIC
  347. gchar *poppler_structure_element_get_form_description(PopplerStructureElement *poppler_structure_element);
  348. POPPLER_PUBLIC
  349. guint poppler_structure_element_get_table_row_span(PopplerStructureElement *poppler_structure_element);
  350. POPPLER_PUBLIC
  351. guint poppler_structure_element_get_table_column_span(PopplerStructureElement *poppler_structure_element);
  352. POPPLER_PUBLIC
  353. gchar **poppler_structure_element_get_table_headers(PopplerStructureElement *poppler_structure_element);
  354. POPPLER_PUBLIC
  355. PopplerStructureTableScope poppler_structure_element_get_table_scope(PopplerStructureElement *poppler_structure_element);
  356. POPPLER_PUBLIC
  357. gchar *poppler_structure_element_get_table_summary(PopplerStructureElement *poppler_structure_element);
  358. #define POPPLER_TYPE_STRUCTURE_ELEMENT_ITER (poppler_structure_element_iter_get_type())
  359. POPPLER_PUBLIC
  360. GType poppler_structure_element_iter_get_type(void) G_GNUC_CONST;
  361. POPPLER_PUBLIC
  362. PopplerStructureElementIter *poppler_structure_element_iter_new(PopplerDocument *poppler_document);
  363. POPPLER_PUBLIC
  364. PopplerStructureElementIter *poppler_structure_element_iter_get_child(PopplerStructureElementIter *parent);
  365. POPPLER_PUBLIC
  366. PopplerStructureElementIter *poppler_structure_element_iter_copy(PopplerStructureElementIter *iter);
  367. POPPLER_PUBLIC
  368. PopplerStructureElement *poppler_structure_element_iter_get_element(PopplerStructureElementIter *iter);
  369. POPPLER_PUBLIC
  370. gboolean poppler_structure_element_iter_next(PopplerStructureElementIter *iter);
  371. POPPLER_PUBLIC
  372. void poppler_structure_element_iter_free(PopplerStructureElementIter *iter);
  373. #define POPPLER_TYPE_TEXT_SPAN (poppler_text_span_get_type())
  374. POPPLER_PUBLIC
  375. GType poppler_text_span_get_type(void) G_GNUC_CONST;
  376. POPPLER_PUBLIC
  377. PopplerTextSpan *poppler_text_span_copy(PopplerTextSpan *poppler_text_span);
  378. POPPLER_PUBLIC
  379. void poppler_text_span_free(PopplerTextSpan *poppler_text_span);
  380. POPPLER_PUBLIC
  381. gboolean poppler_text_span_is_fixed_width_font(PopplerTextSpan *poppler_text_span);
  382. POPPLER_PUBLIC
  383. gboolean poppler_text_span_is_serif_font(PopplerTextSpan *poppler_text_span);
  384. POPPLER_PUBLIC
  385. gboolean poppler_text_span_is_bold_font(PopplerTextSpan *poppler_text_span);
  386. POPPLER_PUBLIC
  387. void poppler_text_span_get_color(PopplerTextSpan *poppler_text_span, PopplerColor *color);
  388. POPPLER_PUBLIC
  389. const gchar *poppler_text_span_get_text(PopplerTextSpan *poppler_text_span);
  390. POPPLER_PUBLIC
  391. const gchar *poppler_text_span_get_font_name(PopplerTextSpan *poppler_text_span);
  392. G_END_DECLS
  393. #endif /* !__POPPLER_STRUCTURE_ELEMENT_H__ */