poppler 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README +1 -3
- data/Rakefile +1 -1
- data/ext/poppler/extconf.rb +1 -1
- data/ext/poppler/rbpoppler-color.c +1 -14
- data/ext/poppler/rbpoppler-page.c +18 -127
- data/ext/poppler/rbpoppler-private.h +0 -4
- data/sample/pdf2.rb +5 -16
- data/test/test_page.rb +3 -42
- metadata +47 -83
data/README
CHANGED
@@ -9,8 +9,6 @@ Requirements
|
|
9
9
|
Ruby: http://www.ruby-lang.org/
|
10
10
|
poppler-glib [*]: http://poppler.freedesktop.org/
|
11
11
|
Ruby/GLib2: http://ruby-gnome2.sourceforge.net/
|
12
|
-
Ruby/GTK2: http://ruby-gnome2.sourceforge.net/
|
13
|
-
Ruby/GdkPixbuf2: http://ruby-gnome2.sourceforge.net/
|
14
12
|
cairo/rcairo: http://cairographics.org/ (optional)
|
15
13
|
|
16
14
|
[*]: 0.8.0 or later is requried.
|
@@ -26,7 +24,7 @@ Install
|
|
26
24
|
|
27
25
|
Copying
|
28
26
|
-------
|
29
|
-
Copyright (c) 2002-
|
27
|
+
Copyright (c) 2002-2013 Ruby-GNOME2 Project Team
|
30
28
|
|
31
29
|
This program is free software.
|
32
30
|
You can distribute/modify this program under the terms of
|
data/Rakefile
CHANGED
@@ -6,7 +6,7 @@ require 'gnome2-raketask'
|
|
6
6
|
package = GNOME2Package.new do |_package|
|
7
7
|
_package.summary = "Ruby/Poppler is a Ruby binding of poppler-glib."
|
8
8
|
_package.description = "Ruby/Poppler is a Ruby binding of poppler-glib."
|
9
|
-
_package.dependency.gem.runtime = [
|
9
|
+
_package.dependency.gem.runtime = []
|
10
10
|
_package.win32.packages = []
|
11
11
|
_package.win32.dependencies = ["poppler",
|
12
12
|
["libpng", "1.2.40-1"],
|
data/ext/poppler/extconf.rb
CHANGED
@@ -30,7 +30,7 @@ rescue LoadError
|
|
30
30
|
require 'mkmf-gnome2'
|
31
31
|
end
|
32
32
|
|
33
|
-
["glib2", "atk", "pango", "gdk_pixbuf2"
|
33
|
+
["glib2", "atk", "pango", "gdk_pixbuf2"].each do |package|
|
34
34
|
directory = "#{package}#{version_suffix}"
|
35
35
|
build_dir = "#{directory}/tmp/#{RUBY_PLATFORM}/#{package}/#{RUBY_VERSION}"
|
36
36
|
add_depend_package(package, "#{directory}/ext/#{package}",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
2
|
/*
|
3
|
-
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
3
|
+
* Copyright (C) 2011-2013 Ruby-GNOME2 Project Team
|
4
4
|
* Copyright (C) 2006-2008 Ruby-GNOME2 Project Team
|
5
5
|
*
|
6
6
|
* This library is free software; you can redistribute it and/or
|
@@ -29,19 +29,6 @@ VALUE RG_TARGET_NAMESPACE;
|
|
29
29
|
PopplerColor *
|
30
30
|
rb_poppler_ruby_object_to_color(VALUE color)
|
31
31
|
{
|
32
|
-
#ifdef POPPLER_WITH_GDK
|
33
|
-
if (RTEST(rb_obj_is_kind_of(color, rb_cGdkColor))) {
|
34
|
-
GdkColor *gdk_color;
|
35
|
-
|
36
|
-
gdk_color = RVAL2GDKCOLOR(color);
|
37
|
-
color = rb_funcall(RG_TARGET_NAMESPACE, rb_intern("new"),
|
38
|
-
3,
|
39
|
-
UINT2NUM(gdk_color->red),
|
40
|
-
UINT2NUM(gdk_color->green),
|
41
|
-
UINT2NUM(gdk_color->blue));
|
42
|
-
}
|
43
|
-
#endif
|
44
|
-
|
45
32
|
return RVAL2BOXED(color, POPPLER_TYPE_COLOR);
|
46
33
|
}
|
47
34
|
|
@@ -24,28 +24,9 @@
|
|
24
24
|
#define RG_TARGET_NAMESPACE cPage
|
25
25
|
#define SELF(self) (RVAL2POPPLERPAGE(self))
|
26
26
|
|
27
|
-
#ifndef GDK_TYPE_REGION
|
28
|
-
extern GType gdk_region_get_type(void);
|
29
|
-
# define GDK_TYPE_REGION (gdk_region_get_type())
|
30
|
-
#endif
|
31
|
-
|
32
27
|
static VALUE cRectangle;
|
33
28
|
static VALUE cPSFile;
|
34
29
|
|
35
|
-
#ifdef POPPLER_WITH_GDK
|
36
|
-
static VALUE
|
37
|
-
page_render_to_pixbuf(VALUE self, VALUE src_x, VALUE src_y, VALUE src_width,
|
38
|
-
VALUE src_height, VALUE scale, VALUE rotation,
|
39
|
-
VALUE pixbuf)
|
40
|
-
{
|
41
|
-
poppler_page_render_to_pixbuf(SELF(self), NUM2INT(src_x),
|
42
|
-
NUM2INT(src_y), NUM2INT(src_width),
|
43
|
-
NUM2INT(src_height), NUM2DBL(scale),
|
44
|
-
NUM2INT(rotation), RVAL2GDKPIXBUF(pixbuf));
|
45
|
-
return Qnil;
|
46
|
-
}
|
47
|
-
#endif
|
48
|
-
|
49
30
|
#ifdef RB_POPPLER_CAIRO_AVAILABLE
|
50
31
|
static VALUE
|
51
32
|
page_render(VALUE self, VALUE cairo)
|
@@ -63,49 +44,19 @@ page_render_to_ps(VALUE self, VALUE ps_file)
|
|
63
44
|
}
|
64
45
|
|
65
46
|
static VALUE
|
66
|
-
rg_render(
|
47
|
+
rg_render(VALUE ps_file_or_cairo, VALUE self)
|
67
48
|
{
|
68
|
-
if (
|
69
|
-
|
70
|
-
|
71
|
-
} else {
|
49
|
+
if (RVAL2CBOOL(rb_obj_is_kind_of(ps_file_or_cairo, cPSFile))) {
|
50
|
+
return page_render_to_ps(self, ps_file_or_cairo);
|
51
|
+
} else {
|
72
52
|
#ifdef RB_POPPLER_CAIRO_AVAILABLE
|
73
|
-
|
74
|
-
#else
|
75
|
-
rb_raise(rb_eArgError, "cairo is not available");
|
76
|
-
#endif
|
77
|
-
}
|
78
|
-
} else if (argc == 7) {
|
79
|
-
#ifdef POPPLER_WITH_GDK
|
80
|
-
return page_render_to_pixbuf(self, argv[0], argv[1], argv[2], argv[3],
|
81
|
-
argv[4], argv[5], argv[6]);
|
53
|
+
return page_render(self, ps_file_or_cairo);
|
82
54
|
#else
|
83
|
-
rb_raise(rb_eArgError, "
|
55
|
+
rb_raise(rb_eArgError, "cairo is not available");
|
84
56
|
#endif
|
85
|
-
} else {
|
86
|
-
rb_raise(rb_eArgError,
|
87
|
-
"wrong number of arguments (%d for 1 or 7)",
|
88
|
-
argc);
|
89
57
|
}
|
90
58
|
}
|
91
59
|
|
92
|
-
#ifdef POPPLER_WITH_GDK
|
93
|
-
static VALUE
|
94
|
-
page_render_to_pixbuf_for_printing(VALUE self, VALUE src_x, VALUE src_y,
|
95
|
-
VALUE src_width, VALUE src_height,
|
96
|
-
VALUE scale, VALUE rotation, VALUE pixbuf)
|
97
|
-
{
|
98
|
-
poppler_page_render_to_pixbuf_for_printing(SELF(self), NUM2INT(src_x),
|
99
|
-
NUM2INT(src_y),
|
100
|
-
NUM2INT(src_width),
|
101
|
-
NUM2INT(src_height),
|
102
|
-
NUM2DBL(scale),
|
103
|
-
NUM2INT(rotation),
|
104
|
-
RVAL2GDKPIXBUF(pixbuf));
|
105
|
-
return Qnil;
|
106
|
-
}
|
107
|
-
#endif
|
108
|
-
|
109
60
|
#ifdef RB_POPPLER_CAIRO_AVAILABLE
|
110
61
|
static VALUE
|
111
62
|
page_render_for_printing(VALUE self, VALUE cairo)
|
@@ -116,26 +67,13 @@ page_render_for_printing(VALUE self, VALUE cairo)
|
|
116
67
|
#endif
|
117
68
|
|
118
69
|
static VALUE
|
119
|
-
rg_render_for_printing(
|
70
|
+
rg_render_for_printing(VALUE self, VALUE cairo)
|
120
71
|
{
|
121
|
-
if (argc == 1) {
|
122
72
|
#ifdef RB_POPPLER_CAIRO_AVAILABLE
|
123
|
-
|
124
|
-
#else
|
125
|
-
rb_raise(rb_eArgError, "cairo is not available");
|
126
|
-
#endif
|
127
|
-
} else if (argc == 7) {
|
128
|
-
#ifdef POPPLER_WITH_GDK
|
129
|
-
return page_render_to_pixbuf_for_printing(self, argv[0], argv[1],
|
130
|
-
argv[2], argv[3],
|
131
|
-
argv[4], argv[5], argv[6]);
|
73
|
+
return page_render_for_printing(self, cairo);
|
132
74
|
#else
|
133
|
-
|
75
|
+
rb_raise(rb_eArgError, "cairo is not available");
|
134
76
|
#endif
|
135
|
-
} else {
|
136
|
-
rb_raise(rb_eArgError,
|
137
|
-
"wrong number of arguments (%d for 1 or 7)", argc);
|
138
|
-
}
|
139
77
|
}
|
140
78
|
|
141
79
|
#ifdef RB_POPPLER_CAIRO_AVAILABLE
|
@@ -158,53 +96,17 @@ page_render_selection(VALUE self, VALUE cairo,
|
|
158
96
|
}
|
159
97
|
#endif
|
160
98
|
|
161
|
-
#ifdef POPPLER_WITH_GDK
|
162
|
-
static VALUE
|
163
|
-
page_render_selection_to_pixbuf(VALUE self, VALUE scale, VALUE rotation,
|
164
|
-
VALUE pixbuf, VALUE selection,
|
165
|
-
VALUE rb_old_selection,
|
166
|
-
VALUE style,
|
167
|
-
VALUE glyph_color, VALUE background_color)
|
168
|
-
{
|
169
|
-
PopplerRectangle *old_selection = NULL;
|
170
|
-
|
171
|
-
if (!NIL_P(rb_old_selection))
|
172
|
-
old_selection = RVAL2POPPLERRECTANGLE(rb_old_selection);
|
173
|
-
poppler_page_render_selection_to_pixbuf(SELF(self),
|
174
|
-
NUM2DBL(scale),
|
175
|
-
NUM2INT(rotation),
|
176
|
-
RVAL2GDKPIXBUF(pixbuf),
|
177
|
-
RVAL2POPPLERRECTANGLE(selection),
|
178
|
-
old_selection,
|
179
|
-
RVAL2POPPLERSELECTIONSTYLE(style),
|
180
|
-
RVAL2GDKCOLOR(glyph_color),
|
181
|
-
RVAL2GDKCOLOR(background_color));
|
182
|
-
return Qnil;
|
183
|
-
}
|
184
|
-
#endif
|
185
|
-
|
186
99
|
static VALUE
|
187
|
-
rg_render_selection(
|
100
|
+
rg_render_selection(VALUE self,
|
101
|
+
VALUE cairo, VALUE selection, VALUE old_selection,
|
102
|
+
VALUE style, VALUE glyph_color, VALUE background_color)
|
188
103
|
{
|
189
|
-
if (argc == 6) {
|
190
104
|
#ifdef RB_POPPLER_CAIRO_AVAILABLE
|
191
|
-
|
192
|
-
|
105
|
+
return page_render_selection(self, cairo, selection, old_selection,
|
106
|
+
style, glyph_color, background_color);
|
193
107
|
#else
|
194
|
-
|
195
|
-
#endif
|
196
|
-
} else if (argc == 8) {
|
197
|
-
#ifdef POPPLER_WITH_GDK
|
198
|
-
return page_render_selection_to_pixbuf(self, argv[0], argv[1],
|
199
|
-
argv[2], argv[3], argv[4],
|
200
|
-
argv[5], argv[6], argv[7]);
|
201
|
-
#else
|
202
|
-
rb_raise(rb_eArgError, "GDK is not available");
|
108
|
+
rb_raise(rb_eArgError, "cairo is not available");
|
203
109
|
#endif
|
204
|
-
} else {
|
205
|
-
rb_raise(rb_eArgError,
|
206
|
-
"wrong number of arguments (%d for 5 or 8)", argc);
|
207
|
-
}
|
208
110
|
}
|
209
111
|
|
210
112
|
static VALUE
|
@@ -241,14 +143,6 @@ rg_thumbnail(VALUE self)
|
|
241
143
|
}
|
242
144
|
#endif
|
243
145
|
|
244
|
-
#ifdef POPPLER_WITH_GDK
|
245
|
-
static VALUE
|
246
|
-
rg_thumbnail_pixbuf(VALUE self)
|
247
|
-
{
|
248
|
-
return GOBJ2RVAL(poppler_page_get_thumbnail_pixbuf(SELF(self)));
|
249
|
-
}
|
250
|
-
#endif
|
251
|
-
|
252
146
|
static VALUE
|
253
147
|
rg_thumbnail_size(VALUE self)
|
254
148
|
{
|
@@ -427,8 +321,8 @@ Init_poppler_page(VALUE mPoppler)
|
|
427
321
|
cRectangle = rb_const_get(mPoppler, rb_intern("Rectangle"));
|
428
322
|
cPSFile = rb_const_get(mPoppler, rb_intern("PSFile"));
|
429
323
|
|
430
|
-
RG_DEF_METHOD(render,
|
431
|
-
RG_DEF_METHOD(render_for_printing,
|
324
|
+
RG_DEF_METHOD(render, 1);
|
325
|
+
RG_DEF_METHOD(render_for_printing, 1);
|
432
326
|
RG_DEF_METHOD(size, 0);
|
433
327
|
RG_DEF_METHOD(index, 0);
|
434
328
|
RG_DEF_METHOD(duration, 0);
|
@@ -436,9 +330,6 @@ Init_poppler_page(VALUE mPoppler)
|
|
436
330
|
|
437
331
|
#if RB_POPPLER_CAIRO_AVAILABLE
|
438
332
|
RG_DEF_METHOD(thumbnail, 0);
|
439
|
-
#endif
|
440
|
-
#if POPPLER_WITH_GDK
|
441
|
-
RG_DEF_METHOD(thumbnail_pixbuf, 0);
|
442
333
|
#endif
|
443
334
|
RG_DEF_METHOD(thumbnail_size, 0);
|
444
335
|
RG_DEF_METHOD(find_text, 1);
|
@@ -455,6 +346,6 @@ Init_poppler_page(VALUE mPoppler)
|
|
455
346
|
|
456
347
|
RG_DEF_METHOD(form_field_mapping, 0);
|
457
348
|
RG_DEF_METHOD(annotation_mapping, 0);
|
458
|
-
RG_DEF_METHOD(render_selection,
|
349
|
+
RG_DEF_METHOD(render_selection, 6);
|
459
350
|
RG_DEF_METHOD(crop_box, 0);
|
460
351
|
}
|
data/sample/pdf2.rb
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'tempfile'
|
4
4
|
require "poppler"
|
5
|
+
require "gdk_pixbuf2"
|
5
6
|
|
6
7
|
if ARGV.size < 2
|
7
8
|
puts "usage: #{$0} input.pdf output [scale_ratio] [rotate_angle]"
|
@@ -81,23 +82,11 @@ def to_pixbuf_with_cairo(input, scale, rotate)
|
|
81
82
|
Gdk::Pixbuf.new(temp.path)
|
82
83
|
end
|
83
84
|
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
width, height = page.size.collect {|x| x * scale}
|
88
|
-
pixbuf_width, pixbuf_height = compute_size(width, height, rotate)
|
89
|
-
pixbuf = Gdk::Pixbuf.new(Gdk::Pixbuf::COLORSPACE_RGB, true, 8,
|
90
|
-
pixbuf_width, pixbuf_height)
|
91
|
-
page.render(0, 0, width, height, scale, rotate, pixbuf)
|
92
|
-
pixbuf
|
93
|
-
end
|
94
|
-
|
95
|
-
if Poppler.cairo_available?
|
96
|
-
puts "using cairo..."
|
97
|
-
pixbuf = to_pixbuf_with_cairo(input, scale, rotate)
|
98
|
-
else
|
99
|
-
pixbuf = to_pixbuf(input, scale, rotate)
|
85
|
+
unless Poppler.cairo_available?
|
86
|
+
puts "cairo isn't available."
|
87
|
+
exit(false)
|
100
88
|
end
|
89
|
+
pixbuf = to_pixbuf_with_cairo(input, scale, rotate)
|
101
90
|
|
102
91
|
if pixbuf.nil?
|
103
92
|
puts "Is it a PDF file?: #{input}"
|
data/test/test_page.rb
CHANGED
@@ -1,49 +1,10 @@
|
|
1
1
|
class TestPage < Test::Unit::TestCase
|
2
2
|
def test_get_image
|
3
|
+
omit("We don't have PDF that has image...")
|
3
4
|
document = Poppler::Document.new(image_pdf)
|
4
5
|
page, mapping = find_first_image_mapping(document)
|
5
|
-
|
6
|
-
|
7
|
-
assert_kind_of(Cairo::ImageSurface, mapping.image)
|
8
|
-
else
|
9
|
-
assert_kind_of(Gdk::Pixbuf, mapping.image)
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
def test_render_to_pixbuf
|
14
|
-
only_old_poppler_version(0, 17, 0)
|
15
|
-
|
16
|
-
document = Poppler::Document.new(image_pdf)
|
17
|
-
page = document[0]
|
18
|
-
width, height = page.size
|
19
|
-
pixbuf = Gdk::Pixbuf.new(Gdk::Pixbuf::COLORSPACE_RGB, true, 8,
|
20
|
-
width / 2, height / 2)
|
21
|
-
pixbuf.fill!(0)
|
22
|
-
assert_equal("\0" * 10, pixbuf.pixels[0, 10])
|
23
|
-
page.render(0, 0, width, height, 0.5, 0, pixbuf)
|
24
|
-
assert_not_equal("\0" * 10, pixbuf.pixels[0, 10])
|
25
|
-
end
|
26
|
-
|
27
|
-
def test_render_to_pixbuf_for_printing
|
28
|
-
only_poppler_version(0, 7, 2)
|
29
|
-
only_old_poppler_version(0, 17, 0)
|
30
|
-
|
31
|
-
document = Poppler::Document.new(image_pdf)
|
32
|
-
page = document[0]
|
33
|
-
width, height = page.size
|
34
|
-
pixbuf = Gdk::Pixbuf.new(Gdk::Pixbuf::COLORSPACE_RGB, true, 8,
|
35
|
-
width / 2, height / 2)
|
36
|
-
pixbuf.fill!(0)
|
37
|
-
assert_equal("\0" * 10, pixbuf.pixels[0, 10])
|
38
|
-
page.render_for_printing(0, 0, width, height, 0.5, 0, pixbuf)
|
39
|
-
assert_not_equal("\0" * 10, pixbuf.pixels[0, 10])
|
40
|
-
end
|
41
|
-
|
42
|
-
def test_thumbnail_pixbuf
|
43
|
-
omit("We doesn't have a PDF that has a thumbnail...")
|
44
|
-
document = Poppler::Document.new(thumbnail_pdf)
|
45
|
-
page = document[0]
|
46
|
-
assert_kind_of(Gdk::Pixbuf, page.thumbnail_pixbuf)
|
6
|
+
assert_kind_of(Cairo::ImageSurface, page.get_image(mapping.image_id))
|
7
|
+
assert_kind_of(Cairo::ImageSurface, mapping.image)
|
47
8
|
end
|
48
9
|
|
49
10
|
def test_selection_region
|
metadata
CHANGED
@@ -1,130 +1,94 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: poppler
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.2.2
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 2
|
9
|
-
- 1
|
10
|
-
version: 1.2.1
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- The Ruby-GNOME2 Project Team
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
21
|
-
name: gtk2
|
22
|
-
prerelease: false
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
-
none: false
|
25
|
-
requirements:
|
26
|
-
- - ">="
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
hash: 29
|
29
|
-
segments:
|
30
|
-
- 1
|
31
|
-
- 2
|
32
|
-
- 1
|
33
|
-
version: 1.2.1
|
34
|
-
type: :runtime
|
35
|
-
version_requirements: *id001
|
12
|
+
date: 2013-03-11 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
36
14
|
description: Ruby/Poppler is a Ruby binding of poppler-glib.
|
37
15
|
email: ruby-gnome2-devel-en@lists.sourceforge.net
|
38
16
|
executables: []
|
39
|
-
|
40
|
-
extensions:
|
17
|
+
extensions:
|
41
18
|
- ext/poppler/extconf.rb
|
42
19
|
extra_rdoc_files: []
|
43
|
-
|
44
|
-
files:
|
20
|
+
files:
|
45
21
|
- README
|
46
22
|
- Rakefile
|
47
23
|
- extconf.rb
|
48
24
|
- lib/poppler.rb
|
49
|
-
- ext/poppler/
|
50
|
-
- ext/poppler/
|
25
|
+
- ext/poppler/depend
|
26
|
+
- ext/poppler/extconf.rb
|
27
|
+
- ext/poppler/poppler.def
|
28
|
+
- ext/poppler/rbpoppler-action.c
|
29
|
+
- ext/poppler/rbpoppler-annotation.c
|
51
30
|
- ext/poppler/rbpoppler-annotationcalloutline.c
|
31
|
+
- ext/poppler/rbpoppler-annotationfreetext.c
|
32
|
+
- ext/poppler/rbpoppler-annotationmapping.c
|
33
|
+
- ext/poppler/rbpoppler-annotationmarkup.c
|
52
34
|
- ext/poppler/rbpoppler-annotationtext.c
|
53
|
-
- ext/poppler/rbpoppler-
|
54
|
-
- ext/poppler/rbpoppler-
|
55
|
-
- ext/poppler/rbpoppler.h
|
56
|
-
- ext/poppler/rbpoppler.c
|
57
|
-
- ext/poppler/rbpoppler-psfile.c
|
35
|
+
- ext/poppler/rbpoppler-attachment.c
|
36
|
+
- ext/poppler/rbpoppler-buttonfield.c
|
58
37
|
- ext/poppler/rbpoppler-choicefield.c
|
38
|
+
- ext/poppler/rbpoppler-color.c
|
39
|
+
- ext/poppler/rbpoppler-document.c
|
40
|
+
- ext/poppler/rbpoppler-fontinfo.c
|
59
41
|
- ext/poppler/rbpoppler-fontsiter.c
|
60
|
-
- ext/poppler/rbpoppler-pagetransition.c
|
61
|
-
- ext/poppler/rbpoppler-page.c
|
62
|
-
- ext/poppler/extconf.rb
|
63
|
-
- ext/poppler/rbpoppler-rectangle.c
|
64
42
|
- ext/poppler/rbpoppler-form-field.c
|
65
|
-
- ext/poppler/rbpoppler-annotationmapping.c
|
66
|
-
- ext/poppler/rbpoppler-action.c
|
67
|
-
- ext/poppler/rbpoppler-imagemapping.c
|
68
43
|
- ext/poppler/rbpoppler-formfieldmapping.c
|
69
|
-
- ext/poppler/rbpoppler-
|
44
|
+
- ext/poppler/rbpoppler-imagemapping.c
|
45
|
+
- ext/poppler/rbpoppler-indexiter.c
|
46
|
+
- ext/poppler/rbpoppler-linkmapping.c
|
47
|
+
- ext/poppler/rbpoppler-page.c
|
48
|
+
- ext/poppler/rbpoppler-pagetransition.c
|
70
49
|
- ext/poppler/rbpoppler-private.h
|
50
|
+
- ext/poppler/rbpoppler-psfile.c
|
51
|
+
- ext/poppler/rbpoppler-rectangle.c
|
71
52
|
- ext/poppler/rbpoppler-textfield.c
|
72
|
-
- ext/poppler/rbpoppler
|
73
|
-
- ext/poppler/
|
53
|
+
- ext/poppler/rbpoppler.c
|
54
|
+
- ext/poppler/rbpoppler.h
|
74
55
|
- ext/poppler/rbpopplerconversions.h
|
75
|
-
-
|
76
|
-
-
|
77
|
-
- ext/poppler/rbpoppler-document.c
|
78
|
-
- ext/poppler/rbpoppler-color.c
|
79
|
-
- ext/poppler/rbpoppler-indexiter.c
|
56
|
+
- sample/number-pdf.rb
|
57
|
+
- sample/pdf2.rb
|
80
58
|
- sample/pdf2svg.rb
|
81
59
|
- sample/pdf2text.rb
|
82
|
-
- sample/pdf2.rb
|
83
60
|
- sample/pdfcrop.rb
|
84
|
-
- sample/number-pdf.rb
|
85
61
|
- sample/pdfdiv.rb
|
86
|
-
- test/
|
62
|
+
- test/fixtures/image.pdf
|
87
63
|
- test/poppler-test-utils.rb
|
88
|
-
- test/test_page.rb
|
89
64
|
- test/run-test.rb
|
90
|
-
- test/
|
65
|
+
- test/test_annotation.rb
|
91
66
|
- test/test_color.rb
|
92
67
|
- test/test_constants.rb
|
93
|
-
- test/
|
68
|
+
- test/test_document.rb
|
69
|
+
- test/test_page.rb
|
94
70
|
homepage: http://ruby-gnome2.sourceforge.jp/
|
95
71
|
licenses: []
|
96
|
-
|
97
72
|
post_install_message:
|
98
73
|
rdoc_options: []
|
99
|
-
|
100
|
-
require_paths:
|
74
|
+
require_paths:
|
101
75
|
- lib
|
102
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
76
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
103
77
|
none: false
|
104
|
-
requirements:
|
105
|
-
- -
|
106
|
-
- !ruby/object:Gem::Version
|
107
|
-
hash: 61
|
108
|
-
segments:
|
109
|
-
- 1
|
110
|
-
- 8
|
111
|
-
- 5
|
78
|
+
requirements:
|
79
|
+
- - ! '>='
|
80
|
+
- !ruby/object:Gem::Version
|
112
81
|
version: 1.8.5
|
113
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
83
|
none: false
|
115
|
-
requirements:
|
116
|
-
- -
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
|
119
|
-
segments:
|
120
|
-
- 0
|
121
|
-
version: "0"
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
122
88
|
requirements: []
|
123
|
-
|
124
89
|
rubyforge_project:
|
125
|
-
rubygems_version: 1.8.
|
90
|
+
rubygems_version: 1.8.23
|
126
91
|
signing_key:
|
127
92
|
specification_version: 3
|
128
93
|
summary: Ruby/Poppler is a Ruby binding of poppler-glib.
|
129
94
|
test_files: []
|
130
|
-
|