poppler 0.90.2.3 → 0.90.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +11 -0
- data/ext/poppler/depend +4 -2
- data/ext/poppler/rbpoppler-form-field.c +2 -2
- data/ext/poppler/rbpoppler-page.c +12 -3
- metadata +12 -13
data/ChangeLog
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
2010-10-08 Guillaume Cottenceau
|
2
|
+
|
3
|
+
* RVAL2CSTR2 is deprecated, replace with RVAL2CSTR_ACCEPT_NIL
|
4
|
+
|
5
|
+
* CSTR2RVAL2 is deprecated, replace with CSTR2RVAL_FREE
|
6
|
+
|
7
|
+
2010-10-03 Kouhei Sutou <kou@cozmixng.org>
|
8
|
+
|
9
|
+
* ext/poppler/rbpoppler-page.c: support Poppler 0.15.0. [#3079667]
|
10
|
+
Reported by Mamoru Tasaka. Thanks!!!
|
11
|
+
|
1
12
|
2010-09-29 Kouhei Sutou <kou@cozmixng.org>
|
2
13
|
|
3
14
|
* Rakefile: fix dependencies.
|
data/ext/poppler/depend
CHANGED
@@ -109,7 +109,7 @@ text_field_get_text(VALUE self)
|
|
109
109
|
static VALUE
|
110
110
|
text_field_set_text(VALUE self, VALUE text)
|
111
111
|
{
|
112
|
-
poppler_form_field_text_set_text(RVAL2TF(self),
|
112
|
+
poppler_form_field_text_set_text(RVAL2TF(self), RVAL2CSTR_ACCEPT_NIL(text));
|
113
113
|
return Qnil;
|
114
114
|
}
|
115
115
|
|
@@ -219,7 +219,7 @@ choice_field_toggle_item(VALUE self, VALUE index)
|
|
219
219
|
static VALUE
|
220
220
|
choice_field_set_text(VALUE self, VALUE text)
|
221
221
|
{
|
222
|
-
poppler_form_field_choice_set_text(RVAL2CF(self),
|
222
|
+
poppler_form_field_choice_set_text(RVAL2CF(self), RVAL2CSTR_ACCEPT_NIL(text));
|
223
223
|
return Qnil;
|
224
224
|
}
|
225
225
|
|
@@ -332,6 +332,9 @@ page_get_text(int argc, VALUE *argv, VALUE self)
|
|
332
332
|
}
|
333
333
|
|
334
334
|
if (NIL_P(rb_rect)) {
|
335
|
+
#if POPPLER_CHECK_VERSION(0, 15, 0)
|
336
|
+
text = poppler_page_get_text(page);
|
337
|
+
#else
|
335
338
|
PopplerRectangle rect;
|
336
339
|
double width, height;
|
337
340
|
|
@@ -343,10 +346,16 @@ page_get_text(int argc, VALUE *argv, VALUE self)
|
|
343
346
|
text = poppler_page_get_text(page,
|
344
347
|
style,
|
345
348
|
&rect);
|
349
|
+
#endif
|
346
350
|
} else {
|
347
|
-
|
348
|
-
|
349
|
-
|
351
|
+
PopplerRectangle *rect;
|
352
|
+
|
353
|
+
rect = RVAL2POPPLER_RECT(rb_rect);
|
354
|
+
#if POPPLER_CHECK_VERSION(0, 15, 0)
|
355
|
+
text = poppler_page_get_selected_text(page, style, rect);
|
356
|
+
#else
|
357
|
+
text = poppler_page_get_text(page, style, rect);
|
358
|
+
#endif
|
350
359
|
}
|
351
360
|
|
352
361
|
rb_text = CSTR2RVAL(text);
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poppler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 369
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 90
|
9
|
-
- 2
|
10
9
|
- 3
|
11
|
-
version: 0.90.
|
10
|
+
version: 0.90.3
|
12
11
|
platform: ruby
|
13
12
|
authors:
|
14
13
|
- The Ruby-GNOME2 Proejct Team
|
@@ -16,7 +15,7 @@ autorequire:
|
|
16
15
|
bindir: bin
|
17
16
|
cert_chain: []
|
18
17
|
|
19
|
-
date: 2010-10-
|
18
|
+
date: 2010-10-23 00:00:00 +09:00
|
20
19
|
default_executable:
|
21
20
|
dependencies:
|
22
21
|
- !ruby/object:Gem::Dependency
|
@@ -43,12 +42,12 @@ dependencies:
|
|
43
42
|
requirements:
|
44
43
|
- - ">="
|
45
44
|
- !ruby/object:Gem::Version
|
46
|
-
hash:
|
45
|
+
hash: 369
|
47
46
|
segments:
|
48
47
|
- 0
|
49
48
|
- 90
|
50
|
-
-
|
51
|
-
version: 0.90.
|
49
|
+
- 3
|
50
|
+
version: 0.90.3
|
52
51
|
type: :runtime
|
53
52
|
version_requirements: *id002
|
54
53
|
- !ruby/object:Gem::Dependency
|
@@ -59,12 +58,12 @@ dependencies:
|
|
59
58
|
requirements:
|
60
59
|
- - ">="
|
61
60
|
- !ruby/object:Gem::Version
|
62
|
-
hash:
|
61
|
+
hash: 369
|
63
62
|
segments:
|
64
63
|
- 0
|
65
64
|
- 90
|
66
|
-
-
|
67
|
-
version: 0.90.
|
65
|
+
- 3
|
66
|
+
version: 0.90.3
|
68
67
|
type: :runtime
|
69
68
|
version_requirements: *id003
|
70
69
|
- !ruby/object:Gem::Dependency
|
@@ -75,12 +74,12 @@ dependencies:
|
|
75
74
|
requirements:
|
76
75
|
- - ">="
|
77
76
|
- !ruby/object:Gem::Version
|
78
|
-
hash:
|
77
|
+
hash: 369
|
79
78
|
segments:
|
80
79
|
- 0
|
81
80
|
- 90
|
82
|
-
-
|
83
|
-
version: 0.90.
|
81
|
+
- 3
|
82
|
+
version: 0.90.3
|
84
83
|
type: :runtime
|
85
84
|
version_requirements: *id004
|
86
85
|
description: Ruby/Poppler is a Ruby binding of poppler-glib.
|