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