poppler 0.90.5 → 0.90.6
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +13 -0
- data/Rakefile +10 -75
- data/ext/poppler/Makefile +162 -0
- data/ext/poppler/extconf.rb +20 -21
- data/ext/poppler/poppler.so +0 -0
- data/ext/poppler/rbpoppler-action.o +0 -0
- data/ext/poppler/rbpoppler-annotation.o +0 -0
- data/ext/poppler/rbpoppler-attachment.o +0 -0
- data/ext/poppler/rbpoppler-document.o +0 -0
- data/ext/poppler/rbpoppler-form-field.o +0 -0
- data/ext/poppler/rbpoppler-page.o +0 -0
- data/ext/poppler/rbpoppler.o +0 -0
- data/ext/poppler/ruby-poppler.pc +3 -0
- data/sample/pdfcrop.rb +32 -0
- data/test/fixtures/form.pdf +0 -0
- data/test/tmp/copied.pdf +0 -0
- data/test/tmp/saved.pdf +0 -0
- metadata +42 -74
data/ChangeLog
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
2011-01-30 Kouhei Sutou <kou@cozmixng.org>
|
2
|
+
|
3
|
+
* Rakefile, ext/poppler/extconf.rb: share depended packages
|
4
|
+
vendor/local/.
|
5
|
+
|
6
|
+
2011-01-22 Masaaki Aoyagi
|
7
|
+
|
8
|
+
* Rakefile: change to use gnome2-raketask.rb.
|
9
|
+
|
10
|
+
2010-11-14 Kouhei Sutou <kou@cozmixng.org>
|
11
|
+
|
12
|
+
* sample/pdfcrop.rb: add a sample to crop PDF.
|
13
|
+
|
1
14
|
2010-10-08 Guillaume Cottenceau
|
2
15
|
|
3
16
|
* RVAL2CSTR2 is deprecated, replace with RVAL2CSTR_ACCEPT_NIL
|
data/Rakefile
CHANGED
@@ -1,80 +1,15 @@
|
|
1
1
|
# -*- ruby -*-
|
2
2
|
|
3
|
-
require '
|
4
|
-
require 'find'
|
5
|
-
require 'rubygems'
|
6
|
-
require 'rake/extensiontask'
|
3
|
+
require './../glib2/lib/gnome2-raketask'
|
7
4
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
def guess_version
|
18
|
-
versions = {}
|
19
|
-
rbglib_h_path = @rb_glib2_dir + "ext" + "glib2" + "rbglib.h"
|
20
|
-
rbglib_h_path.open do |rbglib_h|
|
21
|
-
rbglib_h.each_line do |line|
|
22
|
-
if /#define\s+RBGLIB_([A-Z]+)_VERSION\s+(\d+)/ =~ line
|
23
|
-
versions[$1.downcase] = $2.to_i
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
["major", "minor", "micro"].collect {|type| versions[type]}.compact.join(".")
|
28
|
-
end
|
29
|
-
|
30
|
-
package_name = "poppler"
|
31
|
-
|
32
|
-
spec = Gem::Specification.new do |s|
|
33
|
-
s.name = package_name
|
34
|
-
s.summary = "Ruby/Poppler is a Ruby binding of poppler-glib."
|
35
|
-
s.description = "Ruby/Poppler is a Ruby binding of poppler-glib."
|
36
|
-
s.author = "The Ruby-GNOME2 Proejct Team"
|
37
|
-
s.email = "ruby-gnome2-devel-en@lists.sourceforge.net"
|
38
|
-
s.homepage = "http://ruby-gnome2.sourceforge.jp/"
|
39
|
-
s.version = version
|
40
|
-
s.platform = Gem::Platform::RUBY
|
41
|
-
s.add_dependency("cairo", ">= 1.10.0")
|
42
|
-
compatible_version = version.split(/\./)[0, 3].join(".")
|
43
|
-
s.add_dependency("glib2", ">= #{compatible_version}")
|
44
|
-
s.add_dependency("gtk2", ">= #{compatible_version}")
|
45
|
-
s.add_dependency("gdk_pixbuf2", ">= #{compatible_version}")
|
46
|
-
s.extensions = FileList["ext/#{package_name}/extconf.rb"]
|
47
|
-
s.require_paths = ["lib"]
|
48
|
-
s.files = FileList["ChangeLog", "README", "Rakefile", "extconf.rb",
|
49
|
-
"lib/**/*.rb", "{ext,sample,test}/**/*"]
|
50
|
-
end
|
51
|
-
|
52
|
-
Rake::GemPackageTask.new(spec) do |pkg|
|
5
|
+
package = GNOME2Package.new do |_package|
|
6
|
+
_package.summary = "Ruby/Poppler is a Ruby binding of poppler-glib."
|
7
|
+
_package.description = "Ruby/Poppler is a Ruby binding of poppler-glib."
|
8
|
+
_package.dependency.gem.runtime = ["gtk2"]
|
9
|
+
_package.win32.packages = []
|
10
|
+
_package.win32.dependencies = ["poppler",
|
11
|
+
["libpng", "1.2.40-1"],
|
12
|
+
["jpeg", "7-1"]]
|
53
13
|
end
|
14
|
+
package.define_tasks
|
54
15
|
|
55
|
-
Rake::ExtensionTask.new(package_name, spec) do |ext|
|
56
|
-
ext.cross_compile = true
|
57
|
-
ext.cross_compiling do |spec|
|
58
|
-
if /mingw|mswin/ =~ spec.platform.to_s
|
59
|
-
win32_dir = File.join("vendor", "local")
|
60
|
-
win32_files = []
|
61
|
-
Find.find(win32_dir) do |file|
|
62
|
-
next if /\.zip\z/ =~ file
|
63
|
-
win32_files << file
|
64
|
-
end
|
65
|
-
spec.files += win32_files
|
66
|
-
end
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
namespace :win32 do
|
71
|
-
desc "download Windows binaries"
|
72
|
-
task :download do
|
73
|
-
$LOAD_PATH.unshift((@rb_glib2_dir + "lib").to_s)
|
74
|
-
require 'gnome2-win32-binary-downloader'
|
75
|
-
packages = ["gtk+"]
|
76
|
-
dependencies = ["poppler", "jpeg"]
|
77
|
-
GNOME2Win32BinaryDownloader.download(:packages => packages,
|
78
|
-
:dependencies => dependencies)
|
79
|
-
end
|
80
|
-
end
|
@@ -0,0 +1,162 @@
|
|
1
|
+
|
2
|
+
SHELL = /bin/sh
|
3
|
+
|
4
|
+
#### Start of system configuration section. ####
|
5
|
+
|
6
|
+
srcdir = /home/kou/work/ruby/ruby-gnome2/poppler/ext/poppler
|
7
|
+
topdir = /usr/lib/ruby/1.8/x86_64-linux
|
8
|
+
hdrdir = $(topdir)
|
9
|
+
VPATH = $(srcdir):$(topdir):$(hdrdir)
|
10
|
+
exec_prefix = $(prefix)
|
11
|
+
prefix = $(DESTDIR)/usr
|
12
|
+
sharedstatedir = $(prefix)/com
|
13
|
+
mandir = $(prefix)/share/man
|
14
|
+
psdir = $(docdir)
|
15
|
+
oldincludedir = $(DESTDIR)/usr/include
|
16
|
+
localedir = $(datarootdir)/locale
|
17
|
+
bindir = $(exec_prefix)/bin
|
18
|
+
libexecdir = $(prefix)/lib/ruby1.8
|
19
|
+
sitedir = $(DESTDIR)/usr/local/lib/site_ruby
|
20
|
+
htmldir = $(docdir)
|
21
|
+
vendorarchdir = $(vendorlibdir)/$(sitearch)
|
22
|
+
includedir = $(prefix)/include
|
23
|
+
infodir = $(prefix)/share/info
|
24
|
+
vendorlibdir = $(vendordir)/$(ruby_version)
|
25
|
+
sysconfdir = $(DESTDIR)/etc
|
26
|
+
libdir = $(exec_prefix)/lib
|
27
|
+
sbindir = $(exec_prefix)/sbin
|
28
|
+
rubylibdir = $(libdir)/ruby/$(ruby_version)
|
29
|
+
docdir = $(datarootdir)/doc/$(PACKAGE)
|
30
|
+
dvidir = $(docdir)
|
31
|
+
vendordir = $(libdir)/ruby/vendor_ruby
|
32
|
+
datarootdir = $(prefix)/share
|
33
|
+
pdfdir = $(docdir)
|
34
|
+
archdir = $(rubylibdir)/$(arch)
|
35
|
+
sitearchdir = $(sitelibdir)/$(sitearch)
|
36
|
+
datadir = $(datarootdir)
|
37
|
+
localstatedir = $(DESTDIR)/var
|
38
|
+
sitelibdir = $(sitedir)/$(ruby_version)
|
39
|
+
|
40
|
+
CC = gcc
|
41
|
+
LIBRUBY = $(LIBRUBY_SO)
|
42
|
+
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
43
|
+
LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
|
44
|
+
LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
|
45
|
+
|
46
|
+
RUBY_EXTCONF_H =
|
47
|
+
CFLAGS = -fPIC -fno-strict-aliasing -g -g -O2 -fPIC $(cflags) -Wall -I/usr/include/poppler/glib -I/usr/include/poppler -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/pango-1.0 -pthread -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/poppler -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/home/kou/work/ruby/rcairo/ext/cairo
|
48
|
+
INCFLAGS = -I. -I/home/kou/work/ruby/ruby-gnome2/gdk_pixbuf2/ext/gdk_pixbuf2 -I/home/kou/work/ruby/ruby-gnome2/gdk_pixbuf2/ext/gdk_pixbuf2 -I/home/kou/work/ruby/ruby-gnome2/gdk_pixbuf2/ext/gdk_pixbuf2 -I/home/kou/work/ruby/ruby-gnome2/gtk2/ext/gtk2 -I/home/kou/work/ruby/ruby-gnome2/gtk2/ext/gtk2 -I/home/kou/work/ruby/ruby-gnome2/gtk2/ext/gtk2 -I/home/kou/work/ruby/ruby-gnome2/glib2/ext/glib2 -I/home/kou/work/ruby/ruby-gnome2/glib2/ext/glib2 -I/home/kou/work/ruby/ruby-gnome2/glib2/ext/glib2 -I. -I/usr/lib/ruby/1.8/x86_64-linux -I/home/kou/work/ruby/ruby-gnome2/poppler/ext/poppler
|
49
|
+
DEFS =
|
50
|
+
CPPFLAGS = -DHAVE_RB_DEFINE_ALLOC_FUNC -DHAVE_RB_BLOCK_PROC -DHAVE_OBJECT_ALLOCATE -DHAVE_NODE_ATTRASGN -DHAVE_RB_CAIRO_H -DRUBY_POPPLER_COMPILATION
|
51
|
+
CXXFLAGS = $(CFLAGS)
|
52
|
+
ldflags = -L. -rdynamic -Wl,-export-dynamic -pthread
|
53
|
+
dldflags =
|
54
|
+
archflag =
|
55
|
+
DLDFLAGS = $(ldflags) $(dldflags) $(archflag)
|
56
|
+
LDSHARED = $(CC) -shared
|
57
|
+
AR = ar
|
58
|
+
EXEEXT =
|
59
|
+
|
60
|
+
RUBY_INSTALL_NAME = ruby1.8
|
61
|
+
RUBY_SO_NAME = ruby1.8
|
62
|
+
arch = x86_64-linux
|
63
|
+
sitearch = x86_64-linux
|
64
|
+
ruby_version = 1.8
|
65
|
+
ruby = /usr/bin/ruby1.8
|
66
|
+
RUBY = $(ruby)
|
67
|
+
RM = rm -f
|
68
|
+
MAKEDIRS = mkdir -p
|
69
|
+
INSTALL = /usr/bin/install -c
|
70
|
+
INSTALL_PROG = $(INSTALL) -m 0755
|
71
|
+
INSTALL_DATA = $(INSTALL) -m 644
|
72
|
+
COPY = cp
|
73
|
+
|
74
|
+
#### End of system configuration section. ####
|
75
|
+
|
76
|
+
preload =
|
77
|
+
|
78
|
+
libpath = . $(libdir)
|
79
|
+
LIBPATH = -L. -L$(libdir)
|
80
|
+
DEFFILE =
|
81
|
+
|
82
|
+
CLEANFILES = mkmf.log
|
83
|
+
DISTCLEANFILES =
|
84
|
+
|
85
|
+
extout =
|
86
|
+
extout_prefix =
|
87
|
+
target_prefix =
|
88
|
+
LOCAL_LIBS =
|
89
|
+
LIBS = $(LIBRUBYARG_SHARED) -lpoppler-glib -lgobject-2.0 -lglib-2.0 -lgthread-2.0 -lrt -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lm -lgmodule-2.0 -lpango-1.0 -lpangocairo-1.0 -lcairo -lgio-2.0 -lpoppler -lcairo -lcairo -lpthread -lrt -ldl -lcrypt -lm -lc
|
90
|
+
SRCS = rbpoppler-attachment.c rbpoppler.c rbpoppler-page.c rbpoppler-form-field.c rbpoppler-action.c rbpoppler-annotation.c rbpoppler-document.c
|
91
|
+
OBJS = rbpoppler-attachment.o rbpoppler.o rbpoppler-page.o rbpoppler-form-field.o rbpoppler-action.o rbpoppler-annotation.o rbpoppler-document.o
|
92
|
+
TARGET = poppler
|
93
|
+
DLLIB = $(TARGET).so
|
94
|
+
EXTSTATIC =
|
95
|
+
STATIC_LIB =
|
96
|
+
|
97
|
+
BINDIR = $(bindir)
|
98
|
+
RUBYCOMMONDIR = $(sitedir)$(target_prefix)
|
99
|
+
RUBYLIBDIR = $(sitelibdir)$(target_prefix)
|
100
|
+
RUBYARCHDIR = $(sitearchdir)$(target_prefix)
|
101
|
+
|
102
|
+
TARGET_SO = $(DLLIB)
|
103
|
+
CLEANLIBS = $(TARGET).so $(TARGET).il? $(TARGET).tds $(TARGET).map
|
104
|
+
CLEANOBJS = *.o *.a *.s[ol] *.pdb *.exp *.bak
|
105
|
+
|
106
|
+
all: $(DLLIB)
|
107
|
+
static: $(STATIC_LIB)
|
108
|
+
|
109
|
+
clean:
|
110
|
+
@-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
|
111
|
+
|
112
|
+
distclean: clean
|
113
|
+
@-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
|
114
|
+
@-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
|
115
|
+
|
116
|
+
realclean: distclean
|
117
|
+
install: install-so install-rb
|
118
|
+
|
119
|
+
install-so: $(RUBYARCHDIR)
|
120
|
+
install-so: $(RUBYARCHDIR)/$(DLLIB)
|
121
|
+
$(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
|
122
|
+
$(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
|
123
|
+
install-rb: pre-install-rb install-rb-default
|
124
|
+
install-rb-default: pre-install-rb-default
|
125
|
+
pre-install-rb: Makefile
|
126
|
+
pre-install-rb-default: Makefile
|
127
|
+
$(RUBYARCHDIR):
|
128
|
+
$(MAKEDIRS) $@
|
129
|
+
|
130
|
+
site-install: site-install-so site-install-rb
|
131
|
+
site-install-so: install-so
|
132
|
+
site-install-rb: install-rb
|
133
|
+
|
134
|
+
.SUFFIXES: .c .m .cc .cxx .cpp .C .o
|
135
|
+
|
136
|
+
.cc.o:
|
137
|
+
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
|
138
|
+
|
139
|
+
.cxx.o:
|
140
|
+
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
|
141
|
+
|
142
|
+
.cpp.o:
|
143
|
+
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
|
144
|
+
|
145
|
+
.C.o:
|
146
|
+
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
|
147
|
+
|
148
|
+
.c.o:
|
149
|
+
$(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) -c $<
|
150
|
+
|
151
|
+
$(DLLIB): $(OBJS) Makefile
|
152
|
+
@-$(RM) $@
|
153
|
+
$(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
###
|
158
|
+
install:
|
159
|
+
if test -n "$(pkgconfigdir)"; then \
|
160
|
+
$(MAKEDIRS) $(pkgconfigdir); \
|
161
|
+
$(INSTALL_DATA) ruby-poppler.pc $(pkgconfigdir); \
|
162
|
+
fi
|
data/ext/poppler/extconf.rb
CHANGED
@@ -24,27 +24,7 @@ package_id = "poppler-glib"
|
|
24
24
|
|
25
25
|
require 'mkmf-gnome2'
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
PKGConfig.have_package(package_id) or exit 1
|
30
|
-
|
31
|
-
if PKGConfig.have_package('poppler-cairo')
|
32
|
-
options = {}
|
33
|
-
rcairo_source_dir_names = ["rcairo"]
|
34
|
-
if /mingw|cygwin|mswin32/ =~ RUBY_PLATFORM
|
35
|
-
rcairo_source_dir_names.unshift("rcairo.win32")
|
36
|
-
end
|
37
|
-
rcairo_source_dir_names.each do |rcairo_source_dir_name|
|
38
|
-
rcairo_source_dir = top_dir.parent.expand_path + rcairo_source_dir_name
|
39
|
-
if rcairo_source_dir.exist?
|
40
|
-
options[:rcairo_source_dir] = rcairo_source_dir.to_s
|
41
|
-
break
|
42
|
-
end
|
43
|
-
end
|
44
|
-
check_cairo(options)
|
45
|
-
end
|
46
|
-
|
47
|
-
["glib2", "gtk2", "gdk_pixbuf2"].each do |package|
|
27
|
+
["glib2", "atk", "pango", "gdk_pixbuf2", "gtk2"].each do |package|
|
48
28
|
directory = "#{package}#{version_suffix}"
|
49
29
|
build_dir = "#{directory}/tmp/#{RUBY_PLATFORM}/#{package}/#{RUBY_VERSION}"
|
50
30
|
add_depend_package(package, "#{directory}/ext/#{package}",
|
@@ -53,6 +33,25 @@ end
|
|
53
33
|
:target_build_dir => build_dir)
|
54
34
|
end
|
55
35
|
|
36
|
+
rcairo_options = {}
|
37
|
+
rcairo_source_dir_names = ["rcairo"]
|
38
|
+
if /mingw|cygwin|mswin32/ =~ RUBY_PLATFORM
|
39
|
+
rcairo_source_dir_names.unshift("rcairo.win32")
|
40
|
+
end
|
41
|
+
rcairo_source_dir_names.each do |rcairo_source_dir_name|
|
42
|
+
rcairo_source_dir = top_dir.parent.expand_path + rcairo_source_dir_name
|
43
|
+
if rcairo_source_dir.exist?
|
44
|
+
rcairo_options[:rcairo_source_dir] = rcairo_source_dir.to_s
|
45
|
+
break
|
46
|
+
end
|
47
|
+
end
|
48
|
+
check_cairo(rcairo_options)
|
49
|
+
|
50
|
+
setup_win32(module_name, base_dir)
|
51
|
+
|
52
|
+
PKGConfig.have_package(package_id) or exit 1
|
53
|
+
PKGConfig.have_package('poppler-cairo')
|
54
|
+
|
56
55
|
unless have_macro("POPPLER_MAJOR_VERSION", ["poppler.h"])
|
57
56
|
make_version_header("POPPLER", package_id, ".")
|
58
57
|
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/sample/pdfcrop.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "poppler"
|
4
|
+
|
5
|
+
if ARGV.size != 2
|
6
|
+
puts "usage: #{$0} input.pdf output.pdf"
|
7
|
+
exit(-1)
|
8
|
+
end
|
9
|
+
|
10
|
+
input, output = ARGV
|
11
|
+
|
12
|
+
doc = Poppler::Document.new(input)
|
13
|
+
|
14
|
+
width, height = doc.pages[0].size
|
15
|
+
x_margin = width * 0.1
|
16
|
+
y_margin = height * 0.1
|
17
|
+
croped_width = width - (2 * x_margin)
|
18
|
+
croped_height = height - (2 * y_margin)
|
19
|
+
Cairo::PDFSurface.new(output, croped_width, croped_height) do |surface|
|
20
|
+
context = Cairo::Context.new(surface)
|
21
|
+
|
22
|
+
doc.each do |page|
|
23
|
+
width, height = page.size
|
24
|
+
context.save do
|
25
|
+
context.translate(-x_margin, -y_margin)
|
26
|
+
context.rectangle(x_margin, y_margin, croped_width, croped_height)
|
27
|
+
context.clip
|
28
|
+
page.render(context)
|
29
|
+
context.show_page
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
Binary file
|
data/test/tmp/copied.pdf
ADDED
Binary file
|
data/test/tmp/saved.pdf
ADDED
Binary file
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poppler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 379
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 90
|
9
|
-
-
|
10
|
-
version: 0.90.
|
9
|
+
- 6
|
10
|
+
version: 0.90.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- The Ruby-GNOME2 Proejct Team
|
@@ -15,73 +15,25 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-01-30 00:00:00 +09:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
22
|
-
name: cairo
|
23
|
-
prerelease: false
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 63
|
30
|
-
segments:
|
31
|
-
- 1
|
32
|
-
- 10
|
33
|
-
- 0
|
34
|
-
version: 1.10.0
|
35
|
-
type: :runtime
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: glib2
|
39
|
-
prerelease: false
|
40
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ">="
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
hash: 381
|
46
|
-
segments:
|
47
|
-
- 0
|
48
|
-
- 90
|
49
|
-
- 5
|
50
|
-
version: 0.90.5
|
51
|
-
type: :runtime
|
52
|
-
version_requirements: *id002
|
53
21
|
- !ruby/object:Gem::Dependency
|
54
22
|
name: gtk2
|
55
23
|
prerelease: false
|
56
|
-
requirement: &
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
hash: 381
|
62
|
-
segments:
|
63
|
-
- 0
|
64
|
-
- 90
|
65
|
-
- 5
|
66
|
-
version: 0.90.5
|
67
|
-
type: :runtime
|
68
|
-
version_requirements: *id003
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: gdk_pixbuf2
|
71
|
-
prerelease: false
|
72
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
73
25
|
none: false
|
74
26
|
requirements:
|
75
27
|
- - ">="
|
76
28
|
- !ruby/object:Gem::Version
|
77
|
-
hash:
|
29
|
+
hash: 379
|
78
30
|
segments:
|
79
31
|
- 0
|
80
32
|
- 90
|
81
|
-
-
|
82
|
-
version: 0.90.
|
33
|
+
- 6
|
34
|
+
version: 0.90.6
|
83
35
|
type: :runtime
|
84
|
-
version_requirements: *
|
36
|
+
version_requirements: *id001
|
85
37
|
description: Ruby/Poppler is a Ruby binding of poppler-glib.
|
86
38
|
email: ruby-gnome2-devel-en@lists.sourceforge.net
|
87
39
|
executables: []
|
@@ -96,31 +48,45 @@ files:
|
|
96
48
|
- Rakefile
|
97
49
|
- extconf.rb
|
98
50
|
- lib/poppler.rb
|
99
|
-
- ext/poppler/rbpoppler-
|
100
|
-
- ext/poppler/rbpoppler-private.h
|
101
|
-
- ext/poppler/extconf.rb
|
102
|
-
- ext/poppler/depend
|
103
|
-
- ext/poppler/rbpoppler-page.c
|
104
|
-
- ext/poppler/rbpoppler-document.c
|
105
|
-
- ext/poppler/rbpoppler-action.c
|
106
|
-
- ext/poppler/rbpoppler.h
|
51
|
+
- ext/poppler/rbpoppler-attachment.o
|
107
52
|
- ext/poppler/rbpoppler-attachment.c
|
53
|
+
- ext/poppler/rbpoppler-action.o
|
54
|
+
- ext/poppler/rbpoppler-form-field.o
|
55
|
+
- ext/poppler/rbpoppler-document.o
|
56
|
+
- ext/poppler/rbpoppler.h
|
108
57
|
- ext/poppler/rbpoppler.c
|
58
|
+
- ext/poppler/Makefile
|
59
|
+
- ext/poppler/rbpoppler-page.o
|
60
|
+
- ext/poppler/rbpoppler-annotation.o
|
61
|
+
- ext/poppler/rbpoppler-page.c
|
62
|
+
- ext/poppler/extconf.rb
|
63
|
+
- ext/poppler/rbpoppler.o
|
64
|
+
- ext/poppler/rbpoppler-form-field.c
|
65
|
+
- ext/poppler/rbpoppler-action.c
|
109
66
|
- ext/poppler/rbpoppler-annotation.c
|
67
|
+
- ext/poppler/rbpoppler-private.h
|
68
|
+
- ext/poppler/ruby-poppler.pc
|
110
69
|
- ext/poppler/poppler.def
|
111
|
-
-
|
112
|
-
-
|
70
|
+
- ext/poppler/depend
|
71
|
+
- ext/poppler/rbpoppler-document.c
|
72
|
+
- ext/poppler/poppler.so
|
113
73
|
- sample/pdf2svg.rb
|
114
|
-
- sample/
|
74
|
+
- sample/pdf2text.rb
|
115
75
|
- sample/pdf2.rb
|
76
|
+
- sample/pdfcrop.rb
|
77
|
+
- sample/number-pdf.rb
|
78
|
+
- sample/pdfdiv.rb
|
79
|
+
- test/test_document.rb
|
80
|
+
- test/tmp/copied.pdf
|
81
|
+
- test/tmp/saved.pdf
|
82
|
+
- test/poppler-test-utils.rb
|
116
83
|
- test/test_page.rb
|
117
84
|
- test/run-test.rb
|
118
85
|
- test/fixtures/image.pdf
|
86
|
+
- test/fixtures/form.pdf
|
119
87
|
- test/test_color.rb
|
120
|
-
- test/test_document.rb
|
121
|
-
- test/test_annotation.rb
|
122
88
|
- test/test_constants.rb
|
123
|
-
- test/
|
89
|
+
- test/test_annotation.rb
|
124
90
|
has_rdoc: true
|
125
91
|
homepage: http://ruby-gnome2.sourceforge.jp/
|
126
92
|
licenses: []
|
@@ -135,10 +101,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
135
101
|
requirements:
|
136
102
|
- - ">="
|
137
103
|
- !ruby/object:Gem::Version
|
138
|
-
hash:
|
104
|
+
hash: 61
|
139
105
|
segments:
|
140
|
-
-
|
141
|
-
|
106
|
+
- 1
|
107
|
+
- 8
|
108
|
+
- 5
|
109
|
+
version: 1.8.5
|
142
110
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
111
|
none: false
|
144
112
|
requirements:
|