1 /* poppler-glib.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Poppler", gir_namespace = "Poppler", gir_version = "0.18", lower_case_cprefix = "poppler_")]
5 namespace AnnotTextIcon {
6 [CCode (cheader_filename = "poppler.h", cname = "POPPLER_ANNOT_TEXT_ICON_CIRCLE")]
7 public const string CIRCLE;
8 [CCode (cheader_filename = "poppler.h", cname = "POPPLER_ANNOT_TEXT_ICON_COMMENT")]
9 public const string COMMENT;
10 [CCode (cheader_filename = "poppler.h", cname = "POPPLER_ANNOT_TEXT_ICON_CROSS")]
11 public const string CROSS;
12 [CCode (cheader_filename = "poppler.h", cname = "POPPLER_ANNOT_TEXT_ICON_HELP")]
13 public const string HELP;
14 [CCode (cheader_filename = "poppler.h", cname = "POPPLER_ANNOT_TEXT_ICON_INSERT")]
15 public const string INSERT;
16 [CCode (cheader_filename = "poppler.h", cname = "POPPLER_ANNOT_TEXT_ICON_KEY")]
17 public const string KEY;
18 [CCode (cheader_filename = "poppler.h", cname = "POPPLER_ANNOT_TEXT_ICON_NEW_PARAGRAPH")]
19 public const string NEW_PARAGRAPH;
20 [CCode (cheader_filename = "poppler.h", cname = "POPPLER_ANNOT_TEXT_ICON_NOTE")]
21 public const string NOTE;
22 [CCode (cheader_filename = "poppler.h", cname = "POPPLER_ANNOT_TEXT_ICON_PARAGRAPH")]
23 public const string PARAGRAPH;
25 [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_action_get_type ()")]
28 public Poppler.ActionAny any;
29 public Poppler.ActionGotoDest goto_dest;
30 public Poppler.ActionGotoRemote goto_remote;
31 public Poppler.ActionJavascript javascript;
32 public Poppler.ActionLaunch launch;
33 public Poppler.ActionMovie movie;
34 public Poppler.ActionNamed named;
35 public Poppler.ActionOCGState ocg_state;
36 public Poppler.ActionRendition rendition;
37 public Poppler.ActionType type;
38 public Poppler.ActionUri uri;
39 public Poppler.Action copy ();
42 [CCode (cheader_filename = "poppler.h", type_id = "poppler_annot_get_type ()")]
43 public class Annot : GLib.Object {
44 [CCode (has_construct_function = false)]
46 public Poppler.AnnotType get_annot_type ();
47 public Poppler.Color get_color ();
48 public string get_contents ();
49 public Poppler.AnnotFlag get_flags ();
50 public string get_modified ();
51 public string get_name ();
52 [Version (since = "0.14")]
53 public int get_page_index ();
54 [Version (since = "0.26")]
55 public Poppler.Rectangle get_rectangle ();
56 [Version (since = "0.16")]
57 public void set_color (Poppler.Color? poppler_color);
58 [Version (since = "0.12")]
59 public void set_contents (string contents);
60 [Version (since = "0.22")]
61 public void set_flags (Poppler.AnnotFlag flags);
62 [Version (since = "0.26")]
63 public void set_rectangle (Poppler.Rectangle poppler_rect);
65 [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_annot_callout_line_get_type ()")]
67 public class AnnotCalloutLine {
68 public bool multiline;
75 [CCode (has_construct_function = false)]
76 public AnnotCalloutLine ();
77 public Poppler.AnnotCalloutLine copy ();
80 [CCode (cheader_filename = "poppler.h", type_id = "poppler_annot_circle_get_type ()")]
81 public class AnnotCircle : Poppler.AnnotMarkup {
82 [CCode (has_construct_function = false, type = "PopplerAnnot*")]
83 [Version (since = "0.26")]
84 public AnnotCircle (Poppler.Document doc, Poppler.Rectangle rect);
85 [Version (since = "0.26")]
86 public Poppler.Color get_interior_color ();
87 [Version (since = "0.26")]
88 public void set_interior_color (Poppler.Color? poppler_color);
90 [CCode (cheader_filename = "poppler.h", type_id = "poppler_annot_file_attachment_get_type ()")]
91 public class AnnotFileAttachment : Poppler.AnnotMarkup {
92 [CCode (has_construct_function = false)]
93 protected AnnotFileAttachment ();
94 [Version (since = "0.14")]
95 public Poppler.Attachment get_attachment ();
96 [Version (since = "0.14")]
97 public string get_name ();
99 [CCode (cheader_filename = "poppler.h", type_id = "poppler_annot_free_text_get_type ()")]
100 public class AnnotFreeText : Poppler.AnnotMarkup {
101 [CCode (has_construct_function = false)]
102 protected AnnotFreeText ();
103 public Poppler.AnnotCalloutLine get_callout_line ();
104 public Poppler.AnnotFreeTextQuadding get_quadding ();
106 [CCode (cheader_filename = "poppler.h", type_id = "poppler_annot_line_get_type ()")]
107 public class AnnotLine : Poppler.AnnotMarkup {
108 [CCode (has_construct_function = false, type = "PopplerAnnot*")]
109 [Version (since = "0.26")]
110 public AnnotLine (Poppler.Document doc, Poppler.Rectangle rect, Poppler.Point start, Poppler.Point end);
111 [Version (since = "0.26")]
112 public void set_vertices (Poppler.Point start, Poppler.Point end);
114 [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_annot_mapping_get_type ()")]
116 public class AnnotMapping {
117 public Poppler.Annot annot;
118 public Poppler.Rectangle area;
119 [CCode (has_construct_function = false)]
120 public AnnotMapping ();
121 public Poppler.AnnotMapping copy ();
124 [CCode (cheader_filename = "poppler.h", type_id = "poppler_annot_markup_get_type ()")]
125 public class AnnotMarkup : Poppler.Annot {
126 [CCode (has_construct_function = false)]
127 protected AnnotMarkup ();
128 public GLib.Date? get_date ();
129 public Poppler.AnnotExternalDataType get_external_data ();
130 public string get_label ();
131 public double get_opacity ();
132 public bool get_popup_is_open ();
133 [Version (since = "0.12")]
134 public bool get_popup_rectangle (out Poppler.Rectangle poppler_rect);
135 public Poppler.AnnotMarkupReplyType get_reply_to ();
136 public string get_subject ();
137 [Version (since = "0.12")]
138 public bool has_popup ();
139 [Version (since = "0.16")]
140 public void set_label (string? label);
141 [Version (since = "0.16")]
142 public void set_opacity (double opacity);
143 [Version (since = "0.16")]
144 public void set_popup (Poppler.Rectangle popup_rect);
145 [Version (since = "0.16")]
146 public void set_popup_is_open (bool is_open);
147 [Version (since = "0.33")]
148 public void set_popup_rectangle (Poppler.Rectangle poppler_rect);
150 [CCode (cheader_filename = "poppler.h", type_id = "poppler_annot_movie_get_type ()")]
151 public class AnnotMovie : Poppler.Annot {
152 [CCode (has_construct_function = false)]
153 protected AnnotMovie ();
154 [Version (since = "0.14")]
155 public unowned Poppler.Movie get_movie ();
156 [Version (since = "0.14")]
157 public string get_title ();
159 [CCode (cheader_filename = "poppler.h", type_id = "poppler_annot_screen_get_type ()")]
160 public class AnnotScreen : Poppler.Annot {
161 [CCode (has_construct_function = false)]
162 protected AnnotScreen ();
163 [Version (since = "0.14")]
164 public unowned Poppler.Action get_action ();
166 [CCode (cheader_filename = "poppler.h", type_id = "poppler_annot_square_get_type ()")]
167 public class AnnotSquare : Poppler.AnnotMarkup {
168 [CCode (has_construct_function = false, type = "PopplerAnnot*")]
169 [Version (since = "0.26")]
170 public AnnotSquare (Poppler.Document doc, Poppler.Rectangle rect);
171 [Version (since = "0.26")]
172 public Poppler.Color get_interior_color ();
173 [Version (since = "0.26")]
174 public void set_interior_color (Poppler.Color? poppler_color);
176 [CCode (cheader_filename = "poppler.h", type_id = "poppler_annot_text_get_type ()")]
177 public class AnnotText : Poppler.AnnotMarkup {
178 [CCode (has_construct_function = false, type = "PopplerAnnot*")]
179 [Version (since = "0.16")]
180 public AnnotText (Poppler.Document doc, Poppler.Rectangle rect);
181 public string get_icon ();
182 public bool get_is_open ();
183 public Poppler.AnnotTextState get_state ();
184 [Version (since = "0.16")]
185 public void set_icon (string icon);
186 [Version (since = "0.16")]
187 public void set_is_open (bool is_open);
189 [CCode (cheader_filename = "poppler.h", type_id = "poppler_annot_text_markup_get_type ()")]
190 public class AnnotTextMarkup : Poppler.AnnotMarkup {
191 [CCode (has_construct_function = false)]
192 protected AnnotTextMarkup ();
193 [Version (since = "0.26")]
194 public GLib.Array<Poppler.Quadrilateral> get_quadrilaterals ();
195 [CCode (has_construct_function = false, type = "PopplerAnnot*")]
196 [Version (since = "0.26")]
197 public AnnotTextMarkup.highlight (Poppler.Document doc, Poppler.Rectangle rect, GLib.Array<Poppler.Quadrilateral> quadrilaterals);
198 [Version (since = "0.26")]
199 public void set_quadrilaterals (GLib.Array<Poppler.Quadrilateral> quadrilaterals);
200 [CCode (has_construct_function = false, type = "PopplerAnnot*")]
201 [Version (since = "0.26")]
202 public AnnotTextMarkup.squiggly (Poppler.Document doc, Poppler.Rectangle rect, GLib.Array<Poppler.Quadrilateral> quadrilaterals);
203 [CCode (has_construct_function = false, type = "PopplerAnnot*")]
204 [Version (since = "0.26")]
205 public AnnotTextMarkup.strikeout (Poppler.Document doc, Poppler.Rectangle rect, GLib.Array<Poppler.Quadrilateral> quadrilaterals);
206 [CCode (has_construct_function = false, type = "PopplerAnnot*")]
207 [Version (since = "0.26")]
208 public AnnotTextMarkup.underline (Poppler.Document doc, Poppler.Rectangle rect, GLib.Array<Poppler.Quadrilateral> quadrilaterals);
210 [CCode (cheader_filename = "poppler.h", type_id = "poppler_attachment_get_type ()")]
211 public class Attachment : GLib.Object {
212 public GLib.StringBuilder checksum;
213 public GLib.Time ctime;
214 public string description;
215 public GLib.Time mtime;
218 [CCode (has_construct_function = false)]
219 protected Attachment ();
220 public bool save (string filename) throws GLib.Error;
221 public bool save_to_callback (Poppler.AttachmentSaveFunc save_func) throws GLib.Error;
223 [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_color_get_type ()")]
229 [CCode (has_construct_function = false)]
231 public Poppler.Color copy ();
234 [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_dest_get_type ()")]
237 public double bottom;
238 public uint change_left;
239 public uint change_top;
240 public uint change_zoom;
242 public string named_dest;
246 public Poppler.DestType type;
248 public Poppler.Dest copy ();
251 [CCode (cheader_filename = "poppler.h", type_id = "poppler_document_get_type ()")]
252 public class Document : GLib.Object {
253 [CCode (has_construct_function = false)]
254 protected Document ();
255 public Poppler.Dest find_dest (string link_name);
256 [CCode (has_construct_function = false)]
257 public Document.from_data (string data, int length, string? password) throws GLib.Error;
258 [CCode (has_construct_function = false)]
259 public Document.from_file (string uri, string? password) throws GLib.Error;
260 [CCode (has_construct_function = false)]
261 [Version (since = "0.22")]
262 public Document.from_gfile (GLib.File file, string? password, GLib.Cancellable? cancellable = null) throws GLib.Error;
263 [CCode (has_construct_function = false)]
264 [Version (since = "0.22")]
265 public Document.from_stream (GLib.InputStream stream, int64 length, string? password, GLib.Cancellable? cancellable = null) throws GLib.Error;
266 public GLib.List<Poppler.Attachment> get_attachments ();
267 [Version (since = "0.16")]
268 public string get_author ();
269 [Version (since = "0.16")]
270 public long get_creation_date ();
271 [Version (since = "0.16")]
272 public string get_creator ();
273 public Poppler.FormField get_form_field (int id);
274 [Version (since = "0.16")]
275 public bool get_id (out string permanent_id, out string update_id);
276 [Version (since = "0.16")]
277 public string get_keywords ();
278 [Version (since = "0.16")]
279 public string get_metadata ();
280 [Version (since = "0.16")]
281 public long get_modification_date ();
282 [Version (since = "0.18")]
283 public uint get_n_attachments ();
284 public int get_n_pages ();
285 public Poppler.Page get_page (int index);
286 public Poppler.Page get_page_by_label (string label);
287 [Version (since = "0.16")]
288 public Poppler.PageLayout get_page_layout ();
289 [Version (since = "0.16")]
290 public Poppler.PageMode get_page_mode ();
291 [Version (since = "0.16")]
292 public void get_pdf_version (out uint major_version, out uint minor_version);
293 [Version (since = "0.16")]
294 public string get_pdf_version_string ();
295 [Version (since = "0.16")]
296 public Poppler.Permissions get_permissions ();
297 [Version (since = "0.16")]
298 public string get_producer ();
299 [Version (since = "0.16")]
300 public string get_subject ();
301 [Version (since = "0.16")]
302 public string get_title ();
303 public bool has_attachments ();
304 [Version (since = "0.16")]
305 public bool is_linearized ();
306 public bool save (string uri) throws GLib.Error;
307 public bool save_a_copy (string uri) throws GLib.Error;
308 [Version (since = "0.46")]
309 public void set_author (string author);
310 [Version (since = "0.46")]
311 public void set_creation_date (long creation_date);
312 [Version (since = "0.46")]
313 public void set_creator (string creator);
314 [Version (since = "0.46")]
315 public void set_keywords (string keywords);
316 [Version (since = "0.46")]
317 public void set_modification_date (long modification_date);
318 [Version (since = "0.46")]
319 public void set_producer (string producer);
320 [Version (since = "0.46")]
321 public void set_subject (string subject);
322 [Version (since = "0.46")]
323 public void set_title (string title);
324 public string author { owned get; set; }
325 public int creation_date { get; set; }
326 public string creator { owned get; set; }
328 public string format { owned get; }
330 public uint format_major { get; }
332 public uint format_minor { get; }
333 public string keywords { owned get; set; }
335 public bool linearized { get; }
336 public string metadata { owned get; }
338 public int mod_date { get; set; }
339 public Poppler.PageLayout page_layout { get; }
340 public Poppler.PageMode page_mode { get; }
341 public Poppler.Permissions permissions { get; }
342 public string producer { owned get; set; }
343 public string subject { owned get; set; }
344 public string title { owned get; set; }
346 public Poppler.ViewerPreferences viewer_preferences { get; }
348 [CCode (cheader_filename = "poppler.h", type_id = "poppler_font_info_get_type ()")]
349 public class FontInfo : GLib.Object {
350 [CCode (has_construct_function = false)]
351 public FontInfo (Poppler.Document document);
353 public bool scan (int n_pages, out Poppler.FontsIter iter);
355 [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_fonts_iter_get_type ()")]
357 public class FontsIter {
358 public Poppler.FontsIter copy ();
360 [Version (since = "0.20")]
361 public unowned string get_encoding ();
362 public unowned string get_file_name ();
363 public Poppler.FontType get_font_type ();
364 public unowned string get_full_name ();
365 public unowned string get_name ();
366 [Version (since = "0.20")]
367 public unowned string get_substitute_name ();
368 public bool is_embedded ();
369 public bool is_subset ();
372 [CCode (cheader_filename = "poppler.h", type_id = "poppler_form_field_get_type ()")]
373 public class FormField : GLib.Object {
374 [CCode (has_construct_function = false)]
375 protected FormField ();
376 public Poppler.FormButtonType button_get_button_type ();
377 public bool button_get_state ();
378 public void button_set_state (bool state);
379 public bool choice_can_select_multiple ();
380 public bool choice_commit_on_change ();
381 public bool choice_do_spell_check ();
382 public Poppler.FormChoiceType choice_get_choice_type ();
383 public string choice_get_item (int index);
384 public int choice_get_n_items ();
385 public string choice_get_text ();
386 public bool choice_is_editable ();
387 public bool choice_is_item_selected (int index);
388 public void choice_select_item (int index);
389 public void choice_set_text (string text);
390 public void choice_toggle_item (int index);
391 public void choice_unselect_all ();
392 [Version (since = "0.18")]
393 public unowned Poppler.Action get_action ();
394 public Poppler.FormFieldType get_field_type ();
395 public double get_font_size ();
396 public int get_id ();
397 [Version (since = "0.16")]
398 public string get_mapping_name ();
399 [Version (since = "0.16")]
400 public string get_name ();
401 [Version (since = "0.16")]
402 public string get_partial_name ();
403 public bool is_read_only ();
404 public bool text_do_scroll ();
405 public bool text_do_spell_check ();
406 public int text_get_max_len ();
407 public string text_get_text ();
408 public Poppler.FormTextType text_get_text_type ();
409 public bool text_is_password ();
410 public bool text_is_rich_text ();
411 public void text_set_text (string text);
413 [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_form_field_mapping_get_type ()")]
415 public class FormFieldMapping {
416 public Poppler.Rectangle area;
417 public Poppler.FormField field;
418 [CCode (has_construct_function = false)]
419 public FormFieldMapping ();
420 public Poppler.FormFieldMapping copy ();
423 [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_image_mapping_get_type ()")]
425 public class ImageMapping {
426 public Poppler.Rectangle area;
428 [CCode (has_construct_function = false)]
429 public ImageMapping ();
430 public Poppler.ImageMapping copy ();
433 [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_index_iter_get_type ()")]
435 public class IndexIter {
436 [CCode (has_construct_function = false)]
437 public IndexIter (Poppler.Document document);
438 public Poppler.IndexIter copy ();
440 public Poppler.Action get_action ();
441 public Poppler.IndexIter get_child ();
442 public bool is_open ();
445 [CCode (cheader_filename = "poppler.h", type_id = "poppler_layer_get_type ()")]
446 public class Layer : GLib.Object {
447 [CCode (has_construct_function = false)]
449 [Version (since = "0.12")]
450 public int get_radio_button_group_id ();
451 [Version (since = "0.12")]
452 public unowned string get_title ();
453 [Version (since = "0.12")]
455 [Version (since = "0.12")]
456 public bool is_parent ();
457 [Version (since = "0.12")]
458 public bool is_visible ();
459 [Version (since = "0.12")]
462 [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_layers_iter_get_type ()")]
464 public class LayersIter {
465 [CCode (has_construct_function = false)]
466 [Version (since = "0.12")]
467 public LayersIter (Poppler.Document document);
468 public Poppler.LayersIter copy ();
469 [Version (since = "0.12")]
471 [Version (since = "0.12")]
472 public Poppler.LayersIter get_child ();
473 [Version (since = "0.12")]
474 public Poppler.Layer get_layer ();
475 [Version (since = "0.12")]
476 public string get_title ();
477 [Version (since = "0.12")]
480 [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_link_mapping_get_type ()")]
482 public class LinkMapping {
483 public Poppler.Action action;
484 public Poppler.Rectangle area;
485 [CCode (has_construct_function = false)]
486 public LinkMapping ();
487 public Poppler.LinkMapping copy ();
490 [CCode (cheader_filename = "poppler.h", type_id = "poppler_media_get_type ()")]
491 public class Media : GLib.Object {
492 [CCode (has_construct_function = false)]
494 [Version (since = "0.14")]
495 public unowned string get_filename ();
496 [Version (since = "0.14")]
497 public unowned string get_mime_type ();
498 [Version (since = "0.14")]
499 public bool is_embedded ();
500 [Version (since = "0.14")]
501 public bool save (string filename) throws GLib.Error;
502 [Version (since = "0.14")]
503 public bool save_to_callback (Poppler.MediaSaveFunc save_func) throws GLib.Error;
505 [CCode (cheader_filename = "poppler.h", type_id = "poppler_movie_get_type ()")]
506 public class Movie : GLib.Object {
507 [CCode (has_construct_function = false)]
509 [Version (since = "0.14")]
510 public unowned string get_filename ();
511 [Version (since = "0.54")]
512 public Poppler.MoviePlayMode get_play_mode ();
513 [Version (since = "0.14")]
514 public bool need_poster ();
515 [Version (since = "0.14")]
516 public bool show_controls ();
518 [CCode (cheader_filename = "poppler.h", type_id = "poppler_ps_file_get_type ()")]
519 public class PSFile : GLib.Object {
520 [CCode (has_construct_function = false)]
521 public PSFile (Poppler.Document document, string filename, int first_page, int n_pages);
523 public void set_duplex (bool duplex);
524 public void set_paper_size (double width, double height);
526 [CCode (cheader_filename = "poppler.h", type_id = "poppler_page_get_type ()")]
527 public class Page : GLib.Object {
528 [CCode (has_construct_function = false)]
530 [Version (since = "0.16")]
531 public void add_annot (Poppler.Annot annot);
532 public GLib.List<Poppler.Rectangle?> find_text (string text);
533 [Version (since = "0.22")]
534 public GLib.List<Poppler.Rectangle?> find_text_with_options (string text, Poppler.FindFlags options);
535 public static void free_annot_mapping (GLib.List<Poppler.AnnotMapping> list);
536 public static void free_form_field_mapping (GLib.List<Poppler.FormFieldMapping> list);
537 public static void free_image_mapping (GLib.List<Poppler.ImageMapping> list);
538 public static void free_link_mapping (GLib.List<Poppler.LinkMapping> list);
539 [Version (since = "0.18")]
540 public static void free_text_attributes (GLib.List<Poppler.TextAttributes> list);
541 public GLib.List<Poppler.AnnotMapping> get_annot_mapping ();
542 public Poppler.Rectangle get_crop_box ();
543 public double get_duration ();
544 public GLib.List<Poppler.FormFieldMapping> get_form_field_mapping ();
545 public Cairo.Surface get_image (int image_id);
546 public GLib.List<Poppler.ImageMapping> get_image_mapping ();
547 public int get_index ();
548 [Version (since = "0.16")]
549 public string get_label ();
550 public GLib.List<Poppler.LinkMapping> get_link_mapping ();
551 [Version (since = "0.16")]
552 public Cairo.Region get_selected_region (double scale, Poppler.SelectionStyle style, Poppler.Rectangle selection);
553 [Version (since = "0.16")]
554 public string get_selected_text (Poppler.SelectionStyle style, Poppler.Rectangle selection);
555 [Version (deprecated = true, deprecated_since = "0.16")]
556 public GLib.List<Poppler.Rectangle?> get_selection_region (double scale, Poppler.SelectionStyle style, Poppler.Rectangle selection);
557 public void get_size (out double width, out double height);
558 [Version (since = "0.16")]
559 public string get_text ();
560 [Version (since = "0.18")]
561 public GLib.List<Poppler.TextAttributes> get_text_attributes ();
562 [Version (since = "0.26")]
563 public GLib.List<Poppler.TextAttributes> get_text_attributes_for_area (Poppler.Rectangle area);
564 [Version (since = "0.26")]
565 public string get_text_for_area (Poppler.Rectangle area);
566 [Version (since = "0.16")]
567 public bool get_text_layout ([CCode (array_length_cname = "n_rectangles", array_length_pos = 1.1, array_length_type = "guint")] out Poppler.Rectangle[] rectangles);
568 [Version (since = "0.26")]
569 public bool get_text_layout_for_area (Poppler.Rectangle area, [CCode (array_length_cname = "n_rectangles", array_length_pos = 2.1, array_length_type = "guint")] out Poppler.Rectangle[] rectangles);
570 public Cairo.Surface get_thumbnail ();
571 public bool get_thumbnail_size (out int width, out int height);
572 public Poppler.PageTransition get_transition ();
573 [Version (since = "0.22")]
574 public void remove_annot (Poppler.Annot annot);
575 public void render ([CCode (type = "cairo_t*")] Cairo.Context cairo);
576 public void render_for_printing ([CCode (type = "cairo_t*")] Cairo.Context cairo);
577 [Version (since = "0.16")]
578 public void render_for_printing_with_options ([CCode (type = "cairo_t*")] Cairo.Context cairo, Poppler.PrintFlags options);
579 public void render_selection ([CCode (type = "cairo_t*")] Cairo.Context cairo, Poppler.Rectangle selection, Poppler.Rectangle old_selection, Poppler.SelectionStyle style, Poppler.Color glyph_color, Poppler.Color background_color);
580 public void render_to_ps (Poppler.PSFile ps_file);
581 [Version (deprecated = true, deprecated_since = "0.16")]
582 public static void selection_region_free (GLib.List<Poppler.Rectangle?> region);
583 public string label { owned get; }
585 [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_page_transition_get_type ()")]
587 public class PageTransition {
588 public Poppler.PageTransitionAlignment alignment;
590 public Poppler.PageTransitionDirection direction;
592 public double duration_real;
593 public bool rectangular;
595 public Poppler.PageTransitionType type;
596 [CCode (has_construct_function = false)]
597 public PageTransition ();
598 public Poppler.PageTransition copy ();
601 [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_point_get_type ()")]
606 [CCode (has_construct_function = false)]
607 [Version (since = "0.26")]
609 [Version (since = "0.26")]
610 public Poppler.Point copy ();
611 [Version (since = "0.26")]
614 [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_quadrilateral_get_type ()")]
616 public class Quadrilateral {
617 public Poppler.Point p1;
618 public Poppler.Point p2;
619 public Poppler.Point p3;
620 public Poppler.Point p4;
621 [CCode (has_construct_function = false)]
622 [Version (since = "0.26")]
623 public Quadrilateral ();
624 [Version (since = "0.26")]
625 public Poppler.Quadrilateral copy ();
626 [Version (since = "0.26")]
629 [CCode (cheader_filename = "poppler.h", type_id = "poppler_structure_element_get_type ()")]
630 public class StructureElement : GLib.Object {
631 [CCode (has_construct_function = false)]
632 protected StructureElement ();
633 public string get_abbreviation ();
634 [Version (since = "0.26")]
635 public string get_actual_text ();
636 [Version (since = "0.26")]
637 public string get_alt_text ();
638 [Version (since = "0.26")]
639 public bool get_background_color (out unowned Poppler.Color color);
640 [Version (since = "0.26")]
641 public double get_baseline_shift ();
642 [Version (since = "0.26")]
643 public Poppler.StructureBlockAlign get_block_align ();
644 [Version (since = "0.26")]
645 public bool get_border_color ([CCode (array_length = false)] out unowned Poppler.Color colors[4]);
646 [Version (since = "0.26")]
647 public void get_border_style ([CCode (array_length = false)] out Poppler.StructureBorderStyle border_styles[4]);
648 [Version (since = "0.26")]
649 public bool get_border_thickness ([CCode (array_length = false)] out double border_thicknesses[4]);
650 [Version (since = "0.26")]
651 public bool get_bounding_box (out Poppler.Rectangle bounding_box);
652 [Version (since = "0.26")]
653 public bool get_color (out unowned Poppler.Color color);
654 [Version (since = "0.26")]
655 public uint get_column_count ();
656 [CCode (array_length_pos = 0.1, array_length_type = "guint")]
657 [Version (since = "0.26")]
658 public double[] get_column_gaps ();
659 [CCode (array_length_pos = 0.1, array_length_type = "guint")]
660 [Version (since = "0.26")]
661 public double[] get_column_widths ();
662 [Version (since = "0.26")]
663 public double get_end_indent ();
664 [Version (since = "0.26")]
665 public string get_form_description ();
666 [Version (since = "0.26")]
667 public Poppler.StructureFormRole get_form_role ();
668 [Version (since = "0.26")]
669 public Poppler.StructureFormState get_form_state ();
670 [Version (since = "0.26")]
671 public Poppler.StructureGlyphOrientation get_glyph_orientation ();
672 [Version (since = "0.26")]
673 public double get_height ();
674 [Version (since = "0.26")]
675 public string get_id ();
676 [Version (since = "0.26")]
677 public Poppler.StructureInlineAlign get_inline_align ();
678 [Version (since = "0.26")]
679 public Poppler.StructureElementKind get_kind ();
680 [Version (since = "0.26")]
681 public string get_language ();
682 [Version (since = "0.26")]
683 public double get_line_height ();
684 [Version (since = "0.26")]
685 public Poppler.StructureListNumbering get_list_numbering ();
686 [Version (since = "0.26")]
687 public void get_padding ([CCode (array_length = false)] out double paddings[4]);
688 [Version (since = "0.26")]
689 public int get_page ();
690 [Version (since = "0.26")]
691 public Poppler.StructurePlacement get_placement ();
692 [Version (since = "0.26")]
693 public Poppler.StructureRubyAlign get_ruby_align ();
694 [Version (since = "0.26")]
695 public Poppler.StructureRubyPosition get_ruby_position ();
696 [Version (since = "0.26")]
697 public double get_space_after ();
698 [Version (since = "0.26")]
699 public double get_space_before ();
700 [Version (since = "0.26")]
701 public double get_start_indent ();
702 [Version (since = "0.26")]
703 public void get_table_border_style ([CCode (array_length = false)] out Poppler.StructureBorderStyle border_styles[4]);
704 [Version (since = "0.26")]
705 public uint get_table_column_span ();
706 [CCode (array_length = false, array_null_terminated = true)]
707 [Version (since = "0.26")]
708 public string[] get_table_headers ();
709 [Version (since = "0.26")]
710 public void get_table_padding ([CCode (array_length = false)] out double paddings[4]);
711 [Version (since = "0.26")]
712 public uint get_table_row_span ();
713 [Version (since = "0.26")]
714 public Poppler.StructureTableScope get_table_scope ();
715 [Version (since = "0.26")]
716 public string get_table_summary ();
717 [Version (since = "0.26")]
718 public string get_text (Poppler.StructureGetTextFlags flags);
719 [Version (since = "0.26")]
720 public Poppler.StructureTextAlign get_text_align ();
721 [Version (since = "0.26")]
722 public bool get_text_decoration_color (out unowned Poppler.Color color);
723 [Version (since = "0.26")]
724 public double get_text_decoration_thickness ();
725 [Version (since = "0.26")]
726 public Poppler.StructureTextDecoration get_text_decoration_type ();
727 [Version (since = "0.26")]
728 public double get_text_indent ();
729 [CCode (array_length_pos = 0.1, array_length_type = "guint")]
730 [Version (since = "0.26")]
731 public Poppler.TextSpan[] get_text_spans ();
732 [Version (since = "0.26")]
733 public string get_title ();
734 [Version (since = "0.26")]
735 public double get_width ();
736 [Version (since = "0.26")]
737 public Poppler.StructureWritingMode get_writing_mode ();
738 [Version (since = "0.26")]
739 public bool is_block ();
740 [Version (since = "0.26")]
741 public bool is_content ();
742 [Version (since = "0.26")]
743 public bool is_grouping ();
744 [Version (since = "0.26")]
745 public bool is_inline ();
747 [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_structure_element_iter_get_type ()")]
749 public class StructureElementIter {
750 [CCode (has_construct_function = false)]
751 [Version (since = "0.26")]
752 public StructureElementIter (Poppler.Document poppler_document);
753 [Version (since = "0.26")]
754 public Poppler.StructureElementIter copy ();
755 [Version (since = "0.26")]
757 [Version (since = "0.26")]
758 public Poppler.StructureElementIter get_child ();
759 [Version (since = "0.26")]
760 public Poppler.StructureElement get_element ();
761 [Version (since = "0.26")]
764 [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_text_attributes_get_type ()")]
766 [Version (since = "0.18")]
767 public class TextAttributes {
768 public Poppler.Color color;
769 public int end_index;
770 public string font_name;
771 public double font_size;
772 public bool is_underlined;
773 public int start_index;
774 [CCode (has_construct_function = false)]
775 public TextAttributes ();
776 public Poppler.TextAttributes copy ();
779 [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_text_span_get_type ()")]
781 public class TextSpan {
782 [Version (since = "0.26")]
783 public Poppler.TextSpan copy ();
784 [Version (since = "0.26")]
786 [Version (since = "0.26")]
787 public void get_color (out unowned Poppler.Color color);
788 [Version (since = "0.26")]
789 public unowned string get_font_name ();
790 [Version (since = "0.26")]
791 public unowned string get_text ();
792 [Version (since = "0.26")]
793 public bool is_bold_font ();
794 [Version (since = "0.26")]
795 public bool is_fixed_width_font ();
796 [Version (since = "0.26")]
797 public bool is_serif_font ();
799 [CCode (cheader_filename = "poppler.h", has_type_id = false)]
800 public struct ActionAny {
801 public Poppler.ActionType type;
804 [CCode (cheader_filename = "poppler.h", has_type_id = false)]
805 public struct ActionGotoDest {
806 public Poppler.ActionType type;
808 public Poppler.Dest dest;
810 [CCode (cheader_filename = "poppler.h", has_type_id = false)]
811 public struct ActionGotoRemote {
812 public Poppler.ActionType type;
814 public string file_name;
815 public Poppler.Dest dest;
817 [CCode (cheader_filename = "poppler.h", has_type_id = false)]
818 public struct ActionJavascript {
819 public Poppler.ActionType type;
821 public string script;
823 [CCode (cheader_filename = "poppler.h", has_type_id = false)]
824 public struct ActionLaunch {
825 public Poppler.ActionType type;
827 public string file_name;
828 public string @params;
830 [CCode (cheader_filename = "poppler.h", has_type_id = false)]
831 public struct ActionLayer {
832 public Poppler.ActionLayerAction action;
833 public weak GLib.List<Poppler.ActionLayer?> layers;
835 [CCode (cheader_filename = "poppler.h", has_type_id = false)]
836 public struct ActionMovie {
837 public Poppler.ActionType type;
839 public Poppler.ActionMovieOperation operation;
840 public Poppler.Movie movie;
842 [CCode (cheader_filename = "poppler.h", has_type_id = false)]
843 public struct ActionNamed {
844 public Poppler.ActionType type;
846 public string named_dest;
848 [CCode (cheader_filename = "poppler.h", has_type_id = false)]
849 public struct ActionOCGState {
850 public Poppler.ActionType type;
852 public GLib.List<Poppler.ActionLayer?> state_list;
854 [CCode (cheader_filename = "poppler.h", has_type_id = false)]
855 public struct ActionRendition {
856 public Poppler.ActionType type;
859 public Poppler.Media media;
861 [CCode (cheader_filename = "poppler.h", has_type_id = false)]
862 public struct ActionUri {
863 public Poppler.ActionType type;
867 [CCode (cheader_filename = "poppler.h", type_id = "poppler_rectangle_get_type ()")]
868 public struct Rectangle {
873 [CCode (has_construct_function = false, type = "PopplerRectangle*")]
875 public Poppler.Rectangle? copy ();
878 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ACTION_LAYER_", type_id = "poppler_action_layer_action_get_type ()")]
879 [Version (since = "0.14")]
880 public enum ActionLayerAction {
885 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ACTION_MOVIE_", type_id = "poppler_action_movie_operation_get_type ()")]
886 [Version (since = "0.14")]
887 public enum ActionMovieOperation {
893 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ACTION_", type_id = "poppler_action_type_get_type ()")]
894 public enum ActionType {
907 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ANNOT_EXTERNAL_DATA_MARKUP_", type_id = "poppler_annot_external_data_type_get_type ()")]
908 public enum AnnotExternalDataType {
912 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ANNOT_FLAG_", type_id = "poppler_annot_flag_get_type ()")]
914 public enum AnnotFlag {
927 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ANNOT_FREE_TEXT_QUADDING_", type_id = "poppler_annot_free_text_quadding_get_type ()")]
928 public enum AnnotFreeTextQuadding {
933 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ANNOT_MARKUP_REPLY_TYPE_", type_id = "poppler_annot_markup_reply_type_get_type ()")]
934 public enum AnnotMarkupReplyType {
938 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ANNOT_TEXT_STATE_", type_id = "poppler_annot_text_state_get_type ()")]
939 public enum AnnotTextState {
949 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ANNOT_", type_id = "poppler_annot_type_get_type ()")]
950 public enum AnnotType {
978 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_BACKEND_", type_id = "poppler_backend_get_type ()")]
979 public enum Backend {
984 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_DEST_", type_id = "poppler_dest_type_get_type ()")]
985 public enum DestType {
997 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_FIND_", type_id = "poppler_find_flags_get_type ()")]
999 [Version (since = "0.22")]
1000 public enum FindFlags {
1006 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_FONT_TYPE_", type_id = "poppler_font_type_get_type ()")]
1007 public enum FontType {
1021 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_FORM_BUTTON_", type_id = "poppler_form_button_type_get_type ()")]
1022 public enum FormButtonType {
1027 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_FORM_CHOICE_", type_id = "poppler_form_choice_type_get_type ()")]
1028 public enum FormChoiceType {
1032 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_FORM_FIELD_", type_id = "poppler_form_field_type_get_type ()")]
1033 public enum FormFieldType {
1040 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_FORM_TEXT_", type_id = "poppler_form_text_type_get_type ()")]
1041 public enum FormTextType {
1046 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_MOVIE_PLAY_MODE_", type_id = "poppler_movie_play_mode_get_type ()")]
1047 [Version (since = "0.54")]
1048 public enum MoviePlayMode {
1054 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_PAGE_LAYOUT_", type_id = "poppler_page_layout_get_type ()")]
1055 public enum PageLayout {
1064 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_PAGE_MODE_", type_id = "poppler_page_mode_get_type ()")]
1065 public enum PageMode {
1074 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_PAGE_TRANSITION_", type_id = "poppler_page_transition_alignment_get_type ()")]
1075 public enum PageTransitionAlignment {
1079 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_PAGE_TRANSITION_", type_id = "poppler_page_transition_direction_get_type ()")]
1080 public enum PageTransitionDirection {
1084 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_PAGE_TRANSITION_", type_id = "poppler_page_transition_type_get_type ()")]
1085 public enum PageTransitionType {
1099 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_PERMISSIONS_", type_id = "poppler_permissions_get_type ()")]
1101 public enum Permissions {
1107 OK_TO_EXTRACT_CONTENTS,
1109 OK_TO_PRINT_HIGH_RESOLUTION,
1112 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_PRINT_", type_id = "poppler_print_flags_get_type ()")]
1114 [Version (since = "0.16")]
1115 public enum PrintFlags {
1121 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_SELECTION_", type_id = "poppler_selection_style_get_type ()")]
1122 public enum SelectionStyle {
1127 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_BLOCK_ALIGN_", type_id = "poppler_structure_block_align_get_type ()")]
1128 public enum StructureBlockAlign {
1134 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_BORDER_STYLE_", type_id = "poppler_structure_border_style_get_type ()")]
1135 public enum StructureBorderStyle {
1146 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_ELEMENT_", type_id = "poppler_structure_element_kind_get_type ()")]
1147 public enum StructureElementKind {
1195 WARICHU_PUNCTUATION,
1200 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_FORM_ROLE_", type_id = "poppler_structure_form_role_get_type ()")]
1201 public enum StructureFormRole {
1208 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_FORM_STATE_", type_id = "poppler_structure_form_state_get_type ()")]
1209 public enum StructureFormState {
1214 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_GET_TEXT_", type_id = "poppler_structure_get_text_flags_get_type ()")]
1216 public enum StructureGetTextFlags {
1220 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_GLYPH_", type_id = "poppler_structure_glyph_orientation_get_type ()")]
1221 public enum StructureGlyphOrientation {
1222 [CCode (cname = "POPPLER_STRUCTURE_GLYPH_ORIENTATION_AUTO")]
1224 [CCode (cname = "POPPLER_STRUCTURE_GLYPH_ORIENTATION_0")]
1226 [CCode (cname = "POPPLER_STRUCTURE_GLYPH_ORIENTATION_90")]
1228 [CCode (cname = "POPPLER_STRUCTURE_GLYPH_ORIENTATION_180")]
1230 [CCode (cname = "POPPLER_STRUCTURE_GLYPH_ORIENTATION_270")]
1233 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_INLINE_ALIGN_", type_id = "poppler_structure_inline_align_get_type ()")]
1234 public enum StructureInlineAlign {
1239 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_LIST_NUMBERING_", type_id = "poppler_structure_list_numbering_get_type ()")]
1240 public enum StructureListNumbering {
1251 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_PLACEMENT_", type_id = "poppler_structure_placement_get_type ()")]
1252 public enum StructurePlacement {
1259 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_RUBY_ALIGN_", type_id = "poppler_structure_ruby_align_get_type ()")]
1260 public enum StructureRubyAlign {
1267 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_RUBY_POSITION_", type_id = "poppler_structure_ruby_position_get_type ()")]
1268 public enum StructureRubyPosition {
1274 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_TABLE_SCOPE_", type_id = "poppler_structure_table_scope_get_type ()")]
1275 public enum StructureTableScope {
1280 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_TEXT_ALIGN_", type_id = "poppler_structure_text_align_get_type ()")]
1281 public enum StructureTextAlign {
1287 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_TEXT_DECORATION_", type_id = "poppler_structure_text_decoration_get_type ()")]
1288 public enum StructureTextDecoration {
1294 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_WRITING_MODE_", type_id = "poppler_structure_writing_mode_get_type ()")]
1295 public enum StructureWritingMode {
1300 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_VIEWER_PREFERENCES_", type_id = "poppler_viewer_preferences_get_type ()")]
1302 public enum ViewerPreferences {
1312 [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ERROR_")]
1313 public errordomain Error {
1319 public static GLib.Quark quark ();
1321 [CCode (cheader_filename = "poppler.h", instance_pos = 1.9)]
1322 public delegate bool AttachmentSaveFunc ([CCode (array_length_cname = "count", array_length_pos = 1.1, array_length_type = "gsize")] uint8[] buf) throws GLib.Error;
1323 [CCode (cheader_filename = "poppler.h", instance_pos = 1.9)]
1324 [Version (since = "0.14")]
1325 public delegate bool MediaSaveFunc ([CCode (array_length_cname = "count", array_length_pos = 1.1, array_length_type = "gsize")] uint8[] buf) throws GLib.Error;
1326 [CCode (cheader_filename = "poppler.h", cname = "POPPLER_HAS_CAIRO")]
1327 public const int HAS_CAIRO;
1328 [CCode (cheader_filename = "poppler.h", cname = "POPPLER_MAJOR_VERSION")]
1329 [Version (since = "0.12")]
1330 public const int MAJOR_VERSION;
1331 [CCode (cheader_filename = "poppler.h", cname = "POPPLER_MICRO_VERSION")]
1332 [Version (since = "0.12")]
1333 public const int MICRO_VERSION;
1334 [CCode (cheader_filename = "poppler.h", cname = "POPPLER_MINOR_VERSION")]
1335 [Version (since = "0.12")]
1336 public const int MINOR_VERSION;
1337 [CCode (cheader_filename = "poppler.h")]
1338 [Version (since = "0.12")]
1339 public static bool date_parse (string date, long timet);
1340 [CCode (cheader_filename = "poppler.h")]
1341 public static Poppler.Backend get_backend ();
1342 [CCode (cheader_filename = "poppler.h")]
1343 public static unowned string get_version ();