blob: f5c286ba9f4395590bafb72dabf21de62f12b0df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
--- poppler.defs.orig 2009-09-27 17:07:59.000000000 +0800
+++ poppler.defs 2012-04-09 05:50:38.000000000 +0800
@@ -1646,58 +1646,6 @@
(return-type "GType")
)
-(define-method render_to_pixbuf
- (of-object "PopplerPage")
- (c-name "poppler_page_render_to_pixbuf")
- (return-type "none")
- (parameters
- '("int" "src_x")
- '("int" "src_y")
- '("int" "src_width")
- '("int" "src_height")
- '("double" "scale")
- '("int" "rotation")
- '("GdkPixbuf*" "pixbuf")
- )
-)
-
-(define-method render_to_pixbuf_for_printing
- (of-object "PopplerPage")
- (c-name "poppler_page_render_to_pixbuf_for_printing")
- (return-type "none")
- (parameters
- '("int" "src_x")
- '("int" "src_y")
- '("int" "src_width")
- '("int" "src_height")
- '("double" "scale")
- '("int" "rotation")
- '("GdkPixbuf*" "pixbuf")
- )
-)
-
-(define-method get_thumbnail_pixbuf
- (of-object "PopplerPage")
- (c-name "poppler_page_get_thumbnail_pixbuf")
- (return-type "GdkPixbuf*")
-)
-
-(define-method render_selection_to_pixbuf
- (of-object "PopplerPage")
- (c-name "poppler_page_render_selection_to_pixbuf")
- (return-type "none")
- (parameters
- '("gdouble" "scale")
- '("int" "rotation")
- '("GdkPixbuf*" "pixbuf")
- '("PopplerRectangle*" "selection")
- '("PopplerRectangle*" "old_selection")
- '("PopplerSelectionStyle" "style")
- '("GdkColor*" "glyph_color")
- '("GdkColor*" "background_color")
- )
-)
-
(define-method render
(of-object "PopplerPage")
(c-name "poppler_page_render")
@@ -1752,6 +1700,12 @@
(return-type "int")
)
+(define-method get_label
+ (of-object "PopplerPage")
+ (c-name "poppler_page_get_label")
+ (return-type "gchar*")
+)
+
(define-method get_duration
(of-object "PopplerPage")
(c-name "poppler_page_get_duration")
@@ -1796,9 +1750,15 @@
(of-object "PopplerPage")
(c-name "poppler_page_get_text")
(return-type "char*")
+)
+
+(define-method get_selected_text
+ (of-object "PopplerPage")
+ (c-name "poppler_page_get_selected_text")
+ (return-type "char*")
(parameters
'("PopplerSelectionStyle" "style")
- '("PopplerRectangle*" "rect")
+ '("PopplerRectangle*" "selection")
)
)
@@ -1886,6 +1846,16 @@
)
)
+(define-function poppler_page_add_annot
+ (of-object "PopplerPage")
+ (c-name "poppler_page_add_annot")
+ (return-type "none")
+ (parameters
+ '("PopplerAnnot*" "annot")
+ '("GList*" "list")
+ )
+)
+
(define-method get_crop_box
(of-object "PopplerPage")
(c-name "poppler_page_get_crop_box")
@@ -1895,6 +1865,16 @@
)
)
+(define-method get_text_layout
+ (of-object "PopplerPage")
+ (c-name "poppler_page_get_text_layout")
+ (return-type "gboolean")
+ (parameters
+ '("PopplerRectangle**" "rectangles")
+ '("guint*" "n_rectangles")
+ )
+)
+
(define-function poppler_rectangle_get_type
(c-name "poppler_rectangle_get_type")
(return-type "GType")
|