[vala/0.48] poppler-glib: Update to 20.09.0



commit a5a23bb08b2c090fc39b177c47609670c37b9d56
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Thu Sep 10 15:09:44 2020 +0200

    poppler-glib: Update to 20.09.0

 vapi/metadata/Poppler-0.18.metadata |  3 +++
 vapi/poppler-glib.vapi              | 50 +++++++++++++++++++++++++++++++++++--
 2 files changed, 51 insertions(+), 2 deletions(-)
---
diff --git a/vapi/metadata/Poppler-0.18.metadata b/vapi/metadata/Poppler-0.18.metadata
index cc68bf44d..99f3d0de2 100644
--- a/vapi/metadata/Poppler-0.18.metadata
+++ b/vapi/metadata/Poppler-0.18.metadata
@@ -2,6 +2,7 @@
 *.* skip=false
 
 Page
+  .get_bounding_box.rect out
   .get_image type="Cairo.Surface"
   .get_selected_region type="Cairo.Region"
   .get_thumbnail type="Cairo.Surface"
@@ -17,3 +18,5 @@ ANNOT_TEXT_ICON_* parent="Poppler.AnnotTextIcon" name="ANNOT_TEXT_ICON_(.+)"
 
 ActionLayer.layers type_arguments="Poppler.ActionLayer?"
 ActionOCGState.state_list type_arguments="Poppler.ActionLayer?"
+ActionResetForm.fields type_arguments="string"
+Document.reset_form.fields type_arguments="string"
diff --git a/vapi/poppler-glib.vapi b/vapi/poppler-glib.vapi
index 14f26f2e3..a9e6f72f8 100644
--- a/vapi/poppler-glib.vapi
+++ b/vapi/poppler-glib.vapi
@@ -34,6 +34,7 @@ namespace Poppler {
                public Poppler.ActionNamed named;
                public Poppler.ActionOCGState ocg_state;
                public Poppler.ActionRendition rendition;
+               public Poppler.ActionResetForm reset_form;
                public Poppler.ActionType type;
                public Poppler.ActionUri uri;
                public Poppler.Action copy ();
@@ -217,6 +218,18 @@ namespace Poppler {
                public size_t size;
                [CCode (has_construct_function = false)]
                protected Attachment ();
+               [Version (since = "20.09.0")]
+               public unowned GLib.StringBuilder get_checksum ();
+               [Version (since = "20.09.0")]
+               public unowned GLib.DateTime? get_ctime ();
+               [Version (since = "20.09.0")]
+               public unowned string get_description ();
+               [Version (since = "20.09.0")]
+               public unowned GLib.DateTime? get_mtime ();
+               [Version (since = "20.09.0")]
+               public unowned string get_name ();
+               [Version (since = "20.09.0")]
+               public size_t get_size ();
                public bool save (string filename) throws GLib.Error;
                public bool save_to_callback (Poppler.AttachmentSaveFunc save_func) throws GLib.Error;
        }
@@ -273,6 +286,8 @@ namespace Poppler {
                public string get_author ();
                [Version (since = "0.16")]
                public long get_creation_date ();
+               [Version (since = "20.09.0")]
+               public GLib.DateTime? get_creation_date_time ();
                [Version (since = "0.16")]
                public string get_creator ();
                public Poppler.FormField get_form_field (int id);
@@ -284,6 +299,8 @@ namespace Poppler {
                public string get_metadata ();
                [Version (since = "0.16")]
                public long get_modification_date ();
+               [Version (since = "20.09.0")]
+               public GLib.DateTime? get_modification_date_time ();
                [Version (since = "0.18")]
                public uint get_n_attachments ();
                public int get_n_pages ();
@@ -323,20 +340,28 @@ namespace Poppler {
                [Version (since = "0.16")]
                public string get_title ();
                public bool has_attachments ();
+               [Version (since = "0.90")]
+               public bool has_javascript ();
                [Version (since = "0.16")]
                public bool is_linearized ();
+               [Version (since = "0.90")]
+               public void reset_form (GLib.List<string> fields, bool exclude_fields);
                public bool save (string uri) throws GLib.Error;
                public bool save_a_copy (string uri) throws GLib.Error;
                [Version (since = "0.46")]
                public void set_author (string author);
                [Version (since = "0.46")]
                public void set_creation_date (long creation_date);
+               [Version (since = "20.09.0")]
+               public void set_creation_date_time (GLib.DateTime? creation_datetime);
                [Version (since = "0.46")]
                public void set_creator (string creator);
                [Version (since = "0.46")]
                public void set_keywords (string keywords);
                [Version (since = "0.46")]
                public void set_modification_date (long modification_date);
+               [Version (since = "20.09.0")]
+               public void set_modification_date_time (GLib.DateTime? modification_datetime);
                [Version (since = "0.46")]
                public void set_producer (string producer);
                [Version (since = "0.46")]
@@ -344,7 +369,11 @@ namespace Poppler {
                [Version (since = "0.46")]
                public void set_title (string title);
                public string author { owned get; set; }
+               [Version (deprecated = true, deprecated_since = "20.09.0")]
                public int creation_date { get; set; }
+               [NoAccessorMethod]
+               [Version (since = "20.09.0")]
+               public GLib.DateTime creation_datetime { owned get; set; }
                public string creator { owned get; set; }
                [NoAccessorMethod]
                public string format { owned get; }
@@ -357,7 +386,11 @@ namespace Poppler {
                public bool linearized { get; }
                public string metadata { owned get; }
                [NoAccessorMethod]
+               [Version (deprecated = true, deprecated_since = "20.09.0")]
                public int mod_date { get; set; }
+               [NoAccessorMethod]
+               [Version (since = "20.09.0")]
+               public GLib.DateTime mod_datetime { owned get; set; }
                public Poppler.PageLayout page_layout { get; }
                public Poppler.PageMode page_mode { get; }
                public Poppler.Permissions permissions { get; }
@@ -429,6 +462,8 @@ namespace Poppler {
                public unowned Poppler.Action get_action ();
                [Version (since = "0.72")]
                public unowned Poppler.Action get_additional_action (Poppler.AdditionalActionType type);
+               [Version (since = "0.88")]
+               public string get_alternate_ui_name ();
                public Poppler.FormFieldType get_field_type ();
                public double get_font_size ();
                public int get_id ();
@@ -544,6 +579,8 @@ namespace Poppler {
        public class Movie : GLib.Object {
                [CCode (has_construct_function = false)]
                protected Movie ();
+               [Version (since = "0.89")]
+               public void get_aspect (int width, int height);
                [Version (since = "0.80")]
                public uint64 get_duration ();
                [Version (since = "0.14")]
@@ -589,6 +626,7 @@ namespace Poppler {
                [Version (since = "0.18")]
                public static void free_text_attributes (GLib.List<Poppler.TextAttributes> list);
                public GLib.List<Poppler.AnnotMapping> get_annot_mapping ();
+               public bool get_bounding_box (out Poppler.Rectangle rect);
                public Poppler.Rectangle get_crop_box ();
                public double get_duration ();
                public GLib.List<Poppler.FormFieldMapping> get_form_field_mapping ();
@@ -910,6 +948,13 @@ namespace Poppler {
                public Poppler.Media media;
        }
        [CCode (cheader_filename = "poppler.h", has_type_id = false)]
+       public struct ActionResetForm {
+               public Poppler.ActionType type;
+               public string title;
+               public GLib.List<string> fields;
+               public bool exclude;
+       }
+       [CCode (cheader_filename = "poppler.h", has_type_id = false)]
        public struct ActionUri {
                public Poppler.ActionType type;
                public string title;
@@ -959,7 +1004,8 @@ namespace Poppler {
                MOVIE,
                RENDITION,
                OCG_STATE,
-               JAVASCRIPT
+               JAVASCRIPT,
+               RESET_FORM
        }
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_ADDITIONAL_ACTION_", type_id = 
"poppler_additional_action_type_get_type ()")]
        [Version (since = "0.72")]
@@ -1474,5 +1520,5 @@ namespace Poppler {
        public static string named_dest_from_bytestring ([CCode (array_length_cname = "length", 
array_length_pos = 1.1, array_length_type = "gsize")] uint8[] data);
        [CCode (array_length_pos = 1.1, array_length_type = "gsize", cheader_filename = "poppler.h")]
        [Version (since = "0.73")]
-       public static uint8[]? named_dest_to_bytestring (string named_dest);
+       public static uint8[]? named_dest_to_bytestring (string name);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]