]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
poppler-glib: Update to 0.85
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 8 Mar 2020 17:04:18 +0000 (18:04 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 8 Mar 2020 17:10:39 +0000 (18:10 +0100)
Fixes https://gitlab.gnome.org/GNOME/vala/issues/922

vapi/metadata/Poppler-0.18.metadata
vapi/poppler-glib.vapi

index caf75ac4897e5ff77468ed97dfd6271f50cb1214..cc68bf44d90c0284101a4d0e82532596bf78ff96 100644 (file)
@@ -1,3 +1,6 @@
+* skip=false
+*.* skip=false
+
 Page
   .get_image type="Cairo.Surface"
   .get_selected_region type="Cairo.Region"
index 4199ab0a0f6948d33fc243fda80b51d4b51e3798..14f26f2e35ccd819a73f98b2156d4ed6f1f6ed74 100644 (file)
@@ -252,9 +252,14 @@ namespace Poppler {
        public class Document : GLib.Object {
                [CCode (has_construct_function = false)]
                protected Document ();
+               [Version (since = "0.78")]
+               public GLib.Tree? create_dests_tree ();
                public Poppler.Dest find_dest (string link_name);
                [CCode (has_construct_function = false)]
-               public Document.from_data (string data, int length, string? password) throws GLib.Error;
+               [Version (since = "0.82")]
+               public Document.from_bytes (GLib.Bytes bytes, string? password) throws GLib.Error;
+               [CCode (has_construct_function = false)]
+               public Document.from_data ([CCode (array_length_cname = "length", array_length_pos = 1.5)] uint8[] data, string? password) throws GLib.Error;
                [CCode (has_construct_function = false)]
                public Document.from_file (string uri, string? password) throws GLib.Error;
                [CCode (has_construct_function = false)]
@@ -302,6 +307,13 @@ namespace Poppler {
                public string get_pdf_version_string ();
                [Version (since = "0.16")]
                public Poppler.Permissions get_permissions ();
+               [Version (since = "0.80")]
+               public Poppler.PrintDuplex get_print_duplex ();
+               [Version (since = "0.80")]
+               public int get_print_n_copies ();
+               [CCode (array_length_pos = 0.1)]
+               [Version (since = "0.80")]
+               public Poppler.PageRange[] get_print_page_ranges ();
                [Version (since = "0.73")]
                public Poppler.PrintScaling get_print_scaling ();
                [Version (since = "0.16")]
@@ -349,6 +361,10 @@ namespace Poppler {
                public Poppler.PageLayout page_layout { get; }
                public Poppler.PageMode page_mode { get; }
                public Poppler.Permissions permissions { get; }
+               [Version (since = "0.80")]
+               public Poppler.PrintDuplex print_duplex { get; }
+               [Version (since = "0.80")]
+               public int print_n_copies { get; }
                [Version (since = "0.73")]
                public Poppler.PrintScaling print_scaling { get; }
                public string producer { owned get; set; }
@@ -528,10 +544,22 @@ namespace Poppler {
        public class Movie : GLib.Object {
                [CCode (has_construct_function = false)]
                protected Movie ();
+               [Version (since = "0.80")]
+               public uint64 get_duration ();
                [Version (since = "0.14")]
                public unowned string get_filename ();
                [Version (since = "0.54")]
                public Poppler.MoviePlayMode get_play_mode ();
+               [Version (since = "0.80")]
+               public double get_rate ();
+               [Version (since = "0.80")]
+               public ushort get_rotation_angle ();
+               [Version (since = "0.80")]
+               public uint64 get_start ();
+               [Version (since = "0.80")]
+               public double get_volume ();
+               [Version (since = "0.80")]
+               public bool is_synchronous ();
                [Version (since = "0.14")]
                public bool need_poster ();
                [Version (since = "0.14")]
@@ -887,6 +915,12 @@ namespace Poppler {
                public string title;
                public string uri;
        }
+       [CCode (cheader_filename = "poppler.h", has_type_id = false)]
+       [Version (since = "0.80")]
+       public struct PageRange {
+               public int start_page;
+               public int end_page;
+       }
        [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_rectangle_get_type ()")]
        public struct Rectangle {
                public double x1;
@@ -1189,6 +1223,14 @@ namespace Poppler {
                OK_TO_PRINT_HIGH_RESOLUTION,
                FULL
        }
+       [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_PRINT_DUPLEX_", type_id = "poppler_print_duplex_get_type ()")]
+       [Version (since = "0.80")]
+       public enum PrintDuplex {
+               NONE,
+               SIMPLEX,
+               DUPLEX_FLIP_SHORT_EDGE,
+               DUPLEX_FLIP_LONG_EDGE
+       }
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_PRINT_", type_id = "poppler_print_flags_get_type ()")]
        [Flags]
        [Version (since = "0.16")]