Release 0.41.92
[vala-gnome.git] / vapi / poppler-glib.vapi
blobb41a2c5f2ea534812114253fa82ee6da180de711
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_")]
4 namespace 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;
24         }
25         [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_action_get_type ()")]
26         [Compact]
27         public class Action {
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 ();
40                 public void free ();
41         }
42         [CCode (cheader_filename = "poppler.h", type_id = "poppler_annot_get_type ()")]
43         public class Annot : GLib.Object {
44                 [CCode (has_construct_function = false)]
45                 protected Annot ();
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);
64         }
65         [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_annot_callout_line_get_type ()")]
66         [Compact]
67         public class AnnotCalloutLine {
68                 public bool multiline;
69                 public double x1;
70                 public double x2;
71                 public double x3;
72                 public double y1;
73                 public double y2;
74                 public double y3;
75                 [CCode (has_construct_function = false)]
76                 public AnnotCalloutLine ();
77                 public Poppler.AnnotCalloutLine copy ();
78                 public void free ();
79         }
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);
89         }
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 ();
98         }
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 ();
105         }
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);
113         }
114         [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_annot_mapping_get_type ()")]
115         [Compact]
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 ();
122                 public void free ();
123         }
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);
149         }
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 ();
158         }
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 ();
165         }
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);
175         }
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);
188         }
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);
209         }
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;
216                 public string name;
217                 public size_t size;
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;
222         }
223         [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_color_get_type ()")]
224         [Compact]
225         public class Color {
226                 public uint16 blue;
227                 public uint16 green;
228                 public uint16 red;
229                 [CCode (has_construct_function = false)]
230                 public Color ();
231                 public Poppler.Color copy ();
232                 public void free ();
233         }
234         [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_dest_get_type ()")]
235         [Compact]
236         public class Dest {
237                 public double bottom;
238                 public uint change_left;
239                 public uint change_top;
240                 public uint change_zoom;
241                 public double left;
242                 public string named_dest;
243                 public int page_num;
244                 public double right;
245                 public double top;
246                 public Poppler.DestType type;
247                 public double zoom;
248                 public Poppler.Dest copy ();
249                 public void free ();
250         }
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; }
327                 [NoAccessorMethod]
328                 public string format { owned get; }
329                 [NoAccessorMethod]
330                 public uint format_major { get; }
331                 [NoAccessorMethod]
332                 public uint format_minor { get; }
333                 public string keywords { owned get; set; }
334                 [NoAccessorMethod]
335                 public bool linearized { get; }
336                 public string metadata { owned get; }
337                 [NoAccessorMethod]
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; }
345                 [NoAccessorMethod]
346                 public Poppler.ViewerPreferences viewer_preferences { get; }
347         }
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);
352                 public void free ();
353                 public bool scan (int n_pages, out Poppler.FontsIter iter);
354         }
355         [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_fonts_iter_get_type ()")]
356         [Compact]
357         public class FontsIter {
358                 public Poppler.FontsIter copy ();
359                 public void free ();
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 ();
370                 public bool next ();
371         }
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);
412         }
413         [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_form_field_mapping_get_type ()")]
414         [Compact]
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 ();
421                 public void free ();
422         }
423         [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_image_mapping_get_type ()")]
424         [Compact]
425         public class ImageMapping {
426                 public Poppler.Rectangle area;
427                 public int image_id;
428                 [CCode (has_construct_function = false)]
429                 public ImageMapping ();
430                 public Poppler.ImageMapping copy ();
431                 public void free ();
432         }
433         [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_index_iter_get_type ()")]
434         [Compact]
435         public class IndexIter {
436                 [CCode (has_construct_function = false)]
437                 public IndexIter (Poppler.Document document);
438                 public Poppler.IndexIter copy ();
439                 public void free ();
440                 public Poppler.Action get_action ();
441                 public Poppler.IndexIter get_child ();
442                 public bool is_open ();
443                 public bool next ();
444         }
445         [CCode (cheader_filename = "poppler.h", type_id = "poppler_layer_get_type ()")]
446         public class Layer : GLib.Object {
447                 [CCode (has_construct_function = false)]
448                 protected Layer ();
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")]
454                 public void hide ();
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")]
460                 public void show ();
461         }
462         [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_layers_iter_get_type ()")]
463         [Compact]
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")]
470                 public void free ();
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")]
478                 public bool next ();
479         }
480         [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_link_mapping_get_type ()")]
481         [Compact]
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 ();
488                 public void free ();
489         }
490         [CCode (cheader_filename = "poppler.h", type_id = "poppler_media_get_type ()")]
491         public class Media : GLib.Object {
492                 [CCode (has_construct_function = false)]
493                 protected Media ();
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;
504         }
505         [CCode (cheader_filename = "poppler.h", type_id = "poppler_movie_get_type ()")]
506         public class Movie : GLib.Object {
507                 [CCode (has_construct_function = false)]
508                 protected Movie ();
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 ();
517         }
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);
522                 public void free ();
523                 public void set_duplex (bool duplex);
524                 public void set_paper_size (double width, double height);
525         }
526         [CCode (cheader_filename = "poppler.h", type_id = "poppler_page_get_type ()")]
527         public class Page : GLib.Object {
528                 [CCode (has_construct_function = false)]
529                 protected Page ();
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; }
584         }
585         [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_page_transition_get_type ()")]
586         [Compact]
587         public class PageTransition {
588                 public Poppler.PageTransitionAlignment alignment;
589                 public int angle;
590                 public Poppler.PageTransitionDirection direction;
591                 public int duration;
592                 public double duration_real;
593                 public bool rectangular;
594                 public double scale;
595                 public Poppler.PageTransitionType type;
596                 [CCode (has_construct_function = false)]
597                 public PageTransition ();
598                 public Poppler.PageTransition copy ();
599                 public void free ();
600         }
601         [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_point_get_type ()")]
602         [Compact]
603         public class Point {
604                 public double x;
605                 public double y;
606                 [CCode (has_construct_function = false)]
607                 [Version (since = "0.26")]
608                 public Point ();
609                 [Version (since = "0.26")]
610                 public Poppler.Point copy ();
611                 [Version (since = "0.26")]
612                 public void free ();
613         }
614         [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_quadrilateral_get_type ()")]
615         [Compact]
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")]
627                 public void free ();
628         }
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 ();
746         }
747         [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_structure_element_iter_get_type ()")]
748         [Compact]
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")]
756                 public void free ();
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")]
762                 public bool next ();
763         }
764         [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_text_attributes_get_type ()")]
765         [Compact]
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 ();
777                 public void free ();
778         }
779         [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_text_span_get_type ()")]
780         [Compact]
781         public class TextSpan {
782                 [Version (since = "0.26")]
783                 public Poppler.TextSpan copy ();
784                 [Version (since = "0.26")]
785                 public void free ();
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 ();
798         }
799         [CCode (cheader_filename = "poppler.h", has_type_id = false)]
800         public struct ActionAny {
801                 public Poppler.ActionType type;
802                 public string title;
803         }
804         [CCode (cheader_filename = "poppler.h", has_type_id = false)]
805         public struct ActionGotoDest {
806                 public Poppler.ActionType type;
807                 public string title;
808                 public Poppler.Dest dest;
809         }
810         [CCode (cheader_filename = "poppler.h", has_type_id = false)]
811         public struct ActionGotoRemote {
812                 public Poppler.ActionType type;
813                 public string title;
814                 public string file_name;
815                 public Poppler.Dest dest;
816         }
817         [CCode (cheader_filename = "poppler.h", has_type_id = false)]
818         public struct ActionJavascript {
819                 public Poppler.ActionType type;
820                 public string title;
821                 public string script;
822         }
823         [CCode (cheader_filename = "poppler.h", has_type_id = false)]
824         public struct ActionLaunch {
825                 public Poppler.ActionType type;
826                 public string title;
827                 public string file_name;
828                 public string @params;
829         }
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;
834         }
835         [CCode (cheader_filename = "poppler.h", has_type_id = false)]
836         public struct ActionMovie {
837                 public Poppler.ActionType type;
838                 public string title;
839                 public Poppler.ActionMovieOperation operation;
840                 public Poppler.Movie movie;
841         }
842         [CCode (cheader_filename = "poppler.h", has_type_id = false)]
843         public struct ActionNamed {
844                 public Poppler.ActionType type;
845                 public string title;
846                 public string named_dest;
847         }
848         [CCode (cheader_filename = "poppler.h", has_type_id = false)]
849         public struct ActionOCGState {
850                 public Poppler.ActionType type;
851                 public string title;
852                 public GLib.List<Poppler.ActionLayer?> state_list;
853         }
854         [CCode (cheader_filename = "poppler.h", has_type_id = false)]
855         public struct ActionRendition {
856                 public Poppler.ActionType type;
857                 public string title;
858                 public int op;
859                 public Poppler.Media media;
860         }
861         [CCode (cheader_filename = "poppler.h", has_type_id = false)]
862         public struct ActionUri {
863                 public Poppler.ActionType type;
864                 public string title;
865                 public string uri;
866         }
867         [CCode (cheader_filename = "poppler.h", type_id = "poppler_rectangle_get_type ()")]
868         public struct Rectangle {
869                 public double x1;
870                 public double y1;
871                 public double x2;
872                 public double y2;
873                 [CCode (has_construct_function = false, type = "PopplerRectangle*")]
874                 public Rectangle ();
875                 public Poppler.Rectangle? copy ();
876                 public void free ();
877         }
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 {
881                 ON,
882                 OFF,
883                 TOGGLE
884         }
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 {
888                 PLAY,
889                 PAUSE,
890                 RESUME,
891                 STOP
892         }
893         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ACTION_", type_id = "poppler_action_type_get_type ()")]
894         public enum ActionType {
895                 UNKNOWN,
896                 NONE,
897                 GOTO_DEST,
898                 GOTO_REMOTE,
899                 LAUNCH,
900                 URI,
901                 NAMED,
902                 MOVIE,
903                 RENDITION,
904                 OCG_STATE,
905                 JAVASCRIPT
906         }
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 {
909                 @3D,
910                 UNKNOWN
911         }
912         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ANNOT_FLAG_", type_id = "poppler_annot_flag_get_type ()")]
913         [Flags]
914         public enum AnnotFlag {
915                 UNKNOWN,
916                 INVISIBLE,
917                 HIDDEN,
918                 PRINT,
919                 NO_ZOOM,
920                 NO_ROTATE,
921                 NO_VIEW,
922                 READ_ONLY,
923                 LOCKED,
924                 TOGGLE_NO_VIEW,
925                 LOCKED_CONTENTS
926         }
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 {
929                 LEFT_JUSTIFIED,
930                 CENTERED,
931                 RIGHT_JUSTIFIED
932         }
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 {
935                 R,
936                 GROUP
937         }
938         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ANNOT_TEXT_STATE_", type_id = "poppler_annot_text_state_get_type ()")]
939         public enum AnnotTextState {
940                 MARKED,
941                 UNMARKED,
942                 ACCEPTED,
943                 REJECTED,
944                 CANCELLED,
945                 COMPLETED,
946                 NONE,
947                 UNKNOWN
948         }
949         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ANNOT_", type_id = "poppler_annot_type_get_type ()")]
950         public enum AnnotType {
951                 UNKNOWN,
952                 TEXT,
953                 LINK,
954                 FREE_TEXT,
955                 LINE,
956                 SQUARE,
957                 CIRCLE,
958                 POLYGON,
959                 POLY_LINE,
960                 HIGHLIGHT,
961                 UNDERLINE,
962                 SQUIGGLY,
963                 STRIKE_OUT,
964                 STAMP,
965                 CARET,
966                 INK,
967                 POPUP,
968                 FILE_ATTACHMENT,
969                 SOUND,
970                 MOVIE,
971                 WIDGET,
972                 SCREEN,
973                 PRINTER_MARK,
974                 TRAP_NET,
975                 WATERMARK,
976                 @3D
977         }
978         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_BACKEND_", type_id = "poppler_backend_get_type ()")]
979         public enum Backend {
980                 UNKNOWN,
981                 SPLASH,
982                 CAIRO
983         }
984         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_DEST_", type_id = "poppler_dest_type_get_type ()")]
985         public enum DestType {
986                 UNKNOWN,
987                 XYZ,
988                 FIT,
989                 FITH,
990                 FITV,
991                 FITR,
992                 FITB,
993                 FITBH,
994                 FITBV,
995                 NAMED
996         }
997         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_FIND_", type_id = "poppler_find_flags_get_type ()")]
998         [Flags]
999         [Version (since = "0.22")]
1000         public enum FindFlags {
1001                 DEFAULT,
1002                 CASE_SENSITIVE,
1003                 BACKWARDS,
1004                 WHOLE_WORDS_ONLY
1005         }
1006         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_FONT_TYPE_", type_id = "poppler_font_type_get_type ()")]
1007         public enum FontType {
1008                 UNKNOWN,
1009                 TYPE1,
1010                 TYPE1C,
1011                 TYPE1COT,
1012                 TYPE3,
1013                 TRUETYPE,
1014                 TRUETYPEOT,
1015                 CID_TYPE0,
1016                 CID_TYPE0C,
1017                 CID_TYPE0COT,
1018                 CID_TYPE2,
1019                 CID_TYPE2OT
1020         }
1021         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_FORM_BUTTON_", type_id = "poppler_form_button_type_get_type ()")]
1022         public enum FormButtonType {
1023                 PUSH,
1024                 CHECK,
1025                 RADIO
1026         }
1027         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_FORM_CHOICE_", type_id = "poppler_form_choice_type_get_type ()")]
1028         public enum FormChoiceType {
1029                 COMBO,
1030                 LIST
1031         }
1032         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_FORM_FIELD_", type_id = "poppler_form_field_type_get_type ()")]
1033         public enum FormFieldType {
1034                 UNKNOWN,
1035                 BUTTON,
1036                 TEXT,
1037                 CHOICE,
1038                 SIGNATURE
1039         }
1040         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_FORM_TEXT_", type_id = "poppler_form_text_type_get_type ()")]
1041         public enum FormTextType {
1042                 NORMAL,
1043                 MULTILINE,
1044                 FILE_SELECT
1045         }
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 {
1049                 ONCE,
1050                 OPEN,
1051                 REPEAT,
1052                 PALINDROME
1053         }
1054         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_PAGE_LAYOUT_", type_id = "poppler_page_layout_get_type ()")]
1055         public enum PageLayout {
1056                 UNSET,
1057                 SINGLE_PAGE,
1058                 ONE_COLUMN,
1059                 TWO_COLUMN_LEFT,
1060                 TWO_COLUMN_RIGHT,
1061                 TWO_PAGE_LEFT,
1062                 TWO_PAGE_RIGHT
1063         }
1064         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_PAGE_MODE_", type_id = "poppler_page_mode_get_type ()")]
1065         public enum PageMode {
1066                 UNSET,
1067                 NONE,
1068                 USE_OUTLINES,
1069                 USE_THUMBS,
1070                 FULL_SCREEN,
1071                 USE_OC,
1072                 USE_ATTACHMENTS
1073         }
1074         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_PAGE_TRANSITION_", type_id = "poppler_page_transition_alignment_get_type ()")]
1075         public enum PageTransitionAlignment {
1076                 HORIZONTAL,
1077                 VERTICAL
1078         }
1079         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_PAGE_TRANSITION_", type_id = "poppler_page_transition_direction_get_type ()")]
1080         public enum PageTransitionDirection {
1081                 INWARD,
1082                 OUTWARD
1083         }
1084         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_PAGE_TRANSITION_", type_id = "poppler_page_transition_type_get_type ()")]
1085         public enum PageTransitionType {
1086                 REPLACE,
1087                 SPLIT,
1088                 BLINDS,
1089                 BOX,
1090                 WIPE,
1091                 DISSOLVE,
1092                 GLITTER,
1093                 FLY,
1094                 PUSH,
1095                 COVER,
1096                 UNCOVER,
1097                 FADE
1098         }
1099         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_PERMISSIONS_", type_id = "poppler_permissions_get_type ()")]
1100         [Flags]
1101         public enum Permissions {
1102                 OK_TO_PRINT,
1103                 OK_TO_MODIFY,
1104                 OK_TO_COPY,
1105                 OK_TO_ADD_NOTES,
1106                 OK_TO_FILL_FORM,
1107                 OK_TO_EXTRACT_CONTENTS,
1108                 OK_TO_ASSEMBLE,
1109                 OK_TO_PRINT_HIGH_RESOLUTION,
1110                 FULL
1111         }
1112         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_PRINT_", type_id = "poppler_print_flags_get_type ()")]
1113         [Flags]
1114         [Version (since = "0.16")]
1115         public enum PrintFlags {
1116                 DOCUMENT,
1117                 MARKUP_ANNOTS,
1118                 STAMP_ANNOTS_ONLY,
1119                 ALL
1120         }
1121         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_SELECTION_", type_id = "poppler_selection_style_get_type ()")]
1122         public enum SelectionStyle {
1123                 GLYPH,
1124                 WORD,
1125                 LINE
1126         }
1127         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_BLOCK_ALIGN_", type_id = "poppler_structure_block_align_get_type ()")]
1128         public enum StructureBlockAlign {
1129                 BEFORE,
1130                 MIDDLE,
1131                 AFTER,
1132                 JUSTIFY
1133         }
1134         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_BORDER_STYLE_", type_id = "poppler_structure_border_style_get_type ()")]
1135         public enum StructureBorderStyle {
1136                 NONE,
1137                 HIDDEN,
1138                 DOTTED,
1139                 DASHED,
1140                 SOLID,
1141                 DOUBLE,
1142                 GROOVE,
1143                 INSET,
1144                 OUTSET
1145         }
1146         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_ELEMENT_", type_id = "poppler_structure_element_kind_get_type ()")]
1147         public enum StructureElementKind {
1148                 CONTENT,
1149                 OBJECT_REFERENCE,
1150                 DOCUMENT,
1151                 PART,
1152                 ARTICLE,
1153                 SECTION,
1154                 DIV,
1155                 SPAN,
1156                 QUOTE,
1157                 NOTE,
1158                 REFERENCE,
1159                 BIBENTRY,
1160                 CODE,
1161                 LINK,
1162                 ANNOT,
1163                 BLOCKQUOTE,
1164                 CAPTION,
1165                 NONSTRUCT,
1166                 TOC,
1167                 TOC_ITEM,
1168                 INDEX,
1169                 PRIVATE,
1170                 PARAGRAPH,
1171                 HEADING,
1172                 HEADING_1,
1173                 HEADING_2,
1174                 HEADING_3,
1175                 HEADING_4,
1176                 HEADING_5,
1177                 HEADING_6,
1178                 LIST,
1179                 LIST_ITEM,
1180                 LIST_LABEL,
1181                 LIST_BODY,
1182                 TABLE,
1183                 TABLE_ROW,
1184                 TABLE_HEADING,
1185                 TABLE_DATA,
1186                 TABLE_HEADER,
1187                 TABLE_FOOTER,
1188                 TABLE_BODY,
1189                 RUBY,
1190                 RUBY_BASE_TEXT,
1191                 RUBY_ANNOT_TEXT,
1192                 RUBY_PUNCTUATION,
1193                 WARICHU,
1194                 WARICHU_TEXT,
1195                 WARICHU_PUNCTUATION,
1196                 FIGURE,
1197                 FORMULA,
1198                 FORM
1199         }
1200         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_FORM_ROLE_", type_id = "poppler_structure_form_role_get_type ()")]
1201         public enum StructureFormRole {
1202                 UNDEFINED,
1203                 RADIO_BUTTON,
1204                 PUSH_BUTTON,
1205                 TEXT_VALUE,
1206                 CHECKBOX
1207         }
1208         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_FORM_STATE_", type_id = "poppler_structure_form_state_get_type ()")]
1209         public enum StructureFormState {
1210                 ON,
1211                 OFF,
1212                 NEUTRAL
1213         }
1214         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_GET_TEXT_", type_id = "poppler_structure_get_text_flags_get_type ()")]
1215         [Flags]
1216         public enum StructureGetTextFlags {
1217                 NONE,
1218                 RECURSIVE
1219         }
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")]
1223                 AUTO,
1224                 [CCode (cname = "POPPLER_STRUCTURE_GLYPH_ORIENTATION_0")]
1225                 @0,
1226                 [CCode (cname = "POPPLER_STRUCTURE_GLYPH_ORIENTATION_90")]
1227                 @90,
1228                 [CCode (cname = "POPPLER_STRUCTURE_GLYPH_ORIENTATION_180")]
1229                 @180,
1230                 [CCode (cname = "POPPLER_STRUCTURE_GLYPH_ORIENTATION_270")]
1231                 @270
1232         }
1233         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_INLINE_ALIGN_", type_id = "poppler_structure_inline_align_get_type ()")]
1234         public enum StructureInlineAlign {
1235                 START,
1236                 CENTER,
1237                 END
1238         }
1239         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_LIST_NUMBERING_", type_id = "poppler_structure_list_numbering_get_type ()")]
1240         public enum StructureListNumbering {
1241                 NONE,
1242                 DISC,
1243                 CIRCLE,
1244                 SQUARE,
1245                 DECIMAL,
1246                 UPPER_ROMAN,
1247                 LOWER_ROMAN,
1248                 UPPER_ALPHA,
1249                 LOWER_ALPHA
1250         }
1251         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_PLACEMENT_", type_id = "poppler_structure_placement_get_type ()")]
1252         public enum StructurePlacement {
1253                 BLOCK,
1254                 INLINE,
1255                 BEFORE,
1256                 START,
1257                 END
1258         }
1259         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_RUBY_ALIGN_", type_id = "poppler_structure_ruby_align_get_type ()")]
1260         public enum StructureRubyAlign {
1261                 START,
1262                 CENTER,
1263                 END,
1264                 JUSTIFY,
1265                 DISTRIBUTE
1266         }
1267         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_RUBY_POSITION_", type_id = "poppler_structure_ruby_position_get_type ()")]
1268         public enum StructureRubyPosition {
1269                 BEFORE,
1270                 AFTER,
1271                 WARICHU,
1272                 INLINE
1273         }
1274         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_TABLE_SCOPE_", type_id = "poppler_structure_table_scope_get_type ()")]
1275         public enum StructureTableScope {
1276                 ROW,
1277                 COLUMN,
1278                 BOTH
1279         }
1280         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_TEXT_ALIGN_", type_id = "poppler_structure_text_align_get_type ()")]
1281         public enum StructureTextAlign {
1282                 START,
1283                 CENTER,
1284                 END,
1285                 JUSTIFY
1286         }
1287         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_TEXT_DECORATION_", type_id = "poppler_structure_text_decoration_get_type ()")]
1288         public enum StructureTextDecoration {
1289                 NONE,
1290                 UNDERLINE,
1291                 OVERLINE,
1292                 LINETHROUGH
1293         }
1294         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_STRUCTURE_WRITING_MODE_", type_id = "poppler_structure_writing_mode_get_type ()")]
1295         public enum StructureWritingMode {
1296                 LR_TB,
1297                 RL_TB,
1298                 TB_RL
1299         }
1300         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_VIEWER_PREFERENCES_", type_id = "poppler_viewer_preferences_get_type ()")]
1301         [Flags]
1302         public enum ViewerPreferences {
1303                 UNSET,
1304                 HIDE_TOOLBAR,
1305                 HIDE_MENUBAR,
1306                 HIDE_WINDOWUI,
1307                 FIT_WINDOW,
1308                 CENTER_WINDOW,
1309                 DISPLAY_DOC_TITLE,
1310                 DIRECTION_RTL
1311         }
1312         [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ERROR_")]
1313         public errordomain Error {
1314                 INVALID,
1315                 ENCRYPTED,
1316                 OPEN_FILE,
1317                 BAD_CATALOG,
1318                 DAMAGED;
1319                 public static GLib.Quark quark ();
1320         }
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 ();