poppler 2.0.2-x86-mingw32 → 2.0.3-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README +1 -1
- data/Rakefile +69 -9
- data/ext/poppler/extconf.rb +5 -2
- data/ext/poppler/rbpoppler-action.c +242 -86
- data/ext/poppler/{rbpoppler-annotationcalloutline.c → rbpoppler-annotation-callout-line.c} +2 -3
- data/ext/poppler/{rbpoppler-annotationfreetext.c → rbpoppler-annotation-free-text.c} +2 -3
- data/ext/poppler/{rbpoppler-annotationmapping.c → rbpoppler-annotation-mapping.c} +2 -3
- data/ext/poppler/{rbpoppler-annotationmarkup.c → rbpoppler-annotation-markup.c} +5 -4
- data/ext/poppler/{rbpoppler-annotationtext.c → rbpoppler-annotation-text.c} +2 -7
- data/ext/poppler/{rbpoppler-buttonfield.c → rbpoppler-button-field.c} +0 -0
- data/ext/poppler/{rbpoppler-choicefield.c → rbpoppler-choice-field.c} +0 -0
- data/ext/poppler/{rbpoppler-fontinfo.c → rbpoppler-font-info.c} +2 -8
- data/ext/poppler/{rbpoppler-fontsiter.c → rbpoppler-fonts-iter.c} +5 -6
- data/ext/poppler/{rbpoppler-formfieldmapping.c → rbpoppler-form-field-mapping.c} +2 -3
- data/ext/poppler/{rbpoppler-imagemapping.c → rbpoppler-image-mapping.c} +2 -7
- data/ext/poppler/{rbpoppler-indexiter.c → rbpoppler-index-iter.c} +2 -3
- data/ext/poppler/{rbpoppler-linkmapping.c → rbpoppler-link-mapping.c} +2 -3
- data/ext/poppler/{rbpoppler-pagetransition.c → rbpoppler-page-transition.c} +2 -3
- data/ext/poppler/rbpoppler-page.c +0 -29
- data/ext/poppler/rbpoppler-private.h +13 -13
- data/ext/poppler/{rbpoppler-psfile.c → rbpoppler-ps-file.c} +2 -3
- data/ext/poppler/{rbpoppler-textfield.c → rbpoppler-text-field.c} +0 -0
- data/ext/poppler/rbpoppler.c +14 -22
- data/ext/poppler/rbpoppler.h +3 -6
- data/ext/poppler/rbpopplerconversions.h +1 -1
- data/lib/1.9/poppler.so +0 -0
- data/lib/2.0/poppler.so +0 -0
- data/sample/pdf2.rb +46 -10
- data/test/fixtures/image.png +0 -0
- data/test/run-test.rb +7 -4
- data/test/test_page.rb +1 -0
- data/vendor/local/bin/cjpeg.exe +0 -0
- data/vendor/local/bin/djpeg.exe +0 -0
- data/vendor/local/bin/jpegtran.exe +0 -0
- data/vendor/local/bin/libjpeg-9.dll +0 -0
- data/vendor/local/bin/libpoppler-44.dll +0 -0
- data/vendor/local/bin/libpoppler-glib-8.dll +0 -0
- data/vendor/local/bin/libsqlite3-0.dll +0 -0
- data/vendor/local/bin/pdfdetach.exe +0 -0
- data/vendor/local/bin/pdffonts.exe +0 -0
- data/vendor/local/bin/pdfimages.exe +0 -0
- data/vendor/local/bin/pdfinfo.exe +0 -0
- data/vendor/local/bin/pdfseparate.exe +0 -0
- data/vendor/local/bin/pdftocairo.exe +0 -0
- data/vendor/local/bin/pdftohtml.exe +0 -0
- data/vendor/local/bin/pdftoppm.exe +0 -0
- data/vendor/local/bin/pdftops.exe +0 -0
- data/vendor/local/bin/pdftotext.exe +0 -0
- data/vendor/local/bin/pdfunite.exe +0 -0
- data/vendor/local/bin/rdjpgcom.exe +0 -0
- data/vendor/local/bin/sqlite3.exe +0 -0
- data/vendor/local/bin/wrjpgcom.exe +0 -0
- data/vendor/local/include/jconfig.h +8 -0
- data/vendor/local/include/jerror.h +2 -2
- data/vendor/local/include/jmorecfg.h +28 -7
- data/vendor/local/include/jpeglib.h +46 -8
- data/vendor/local/include/poppler/glib/poppler-action.h +156 -2
- data/vendor/local/include/poppler/glib/poppler-annot.h +57 -1
- data/vendor/local/include/poppler/glib/poppler-attachment.h +17 -0
- data/vendor/local/include/poppler/glib/poppler-document.h +133 -26
- data/vendor/local/include/poppler/glib/poppler-enums.h +8 -0
- data/vendor/local/include/poppler/glib/poppler-features.h +58 -4
- data/vendor/local/include/poppler/glib/poppler-form-field.h +4 -0
- data/vendor/local/include/poppler/glib/poppler-media.h +73 -0
- data/vendor/local/include/poppler/glib/poppler-movie.h +42 -0
- data/vendor/local/include/poppler/glib/poppler-page.h +133 -44
- data/vendor/local/include/poppler/glib/poppler.h +125 -24
- data/vendor/local/include/sqlite3.h +7338 -0
- data/vendor/local/include/sqlite3ext.h +487 -0
- data/vendor/local/lib/girepository-1.0/Poppler-0.18.typelib +0 -0
- data/vendor/local/lib/libjpeg.a +0 -0
- data/vendor/local/lib/libjpeg.dll.a +0 -0
- data/vendor/local/lib/libjpeg.la +41 -0
- data/vendor/local/lib/libpoppler-glib.a +0 -0
- data/vendor/local/lib/libpoppler-glib.dll.a +0 -0
- data/vendor/local/lib/libpoppler-glib.la +41 -0
- data/vendor/local/lib/libpoppler.a +0 -0
- data/vendor/local/lib/libpoppler.dll.a +0 -0
- data/vendor/local/lib/libpoppler.la +41 -0
- data/vendor/local/lib/libsqlite3.a +0 -0
- data/vendor/local/lib/libsqlite3.dll.a +0 -0
- data/vendor/local/lib/libsqlite3.la +41 -0
- data/vendor/local/lib/pkgconfig/poppler-cairo.pc +9 -0
- data/vendor/local/lib/pkgconfig/poppler-glib.pc +3 -3
- data/vendor/local/lib/pkgconfig/poppler-splash.pc +2 -2
- data/vendor/local/lib/pkgconfig/poppler.pc +1 -1
- data/vendor/local/lib/pkgconfig/sqlite3.pc +13 -0
- data/vendor/local/share/gir-1.0/Poppler-0.18.gir +5452 -0
- data/vendor/local/share/gtk-doc/html/poppler/PopplerAnnot.html +1671 -0
- data/vendor/local/share/gtk-doc/html/poppler/PopplerAttachment.html +214 -0
- data/vendor/local/share/gtk-doc/html/poppler/PopplerDocument.html +2587 -0
- data/vendor/local/share/gtk-doc/html/poppler/PopplerFormField.html +1070 -0
- data/vendor/local/share/gtk-doc/html/poppler/PopplerLayer.html +228 -0
- data/vendor/local/share/gtk-doc/html/poppler/PopplerMedia.html +306 -0
- data/vendor/local/share/gtk-doc/html/poppler/PopplerMovie.html +156 -0
- data/vendor/local/share/gtk-doc/html/poppler/PopplerPage.html +2132 -0
- data/vendor/local/share/gtk-doc/html/poppler/annotation-glossary.html +71 -0
- data/vendor/local/share/gtk-doc/html/poppler/api-index-0-12.html +128 -0
- data/vendor/local/share/gtk-doc/html/poppler/api-index-0-14.html +107 -0
- data/vendor/local/share/gtk-doc/html/poppler/api-index-0-16.html +185 -0
- data/vendor/local/share/gtk-doc/html/poppler/api-index-0-18.html +77 -0
- data/vendor/local/share/gtk-doc/html/poppler/api-index-0-20.html +42 -0
- data/vendor/local/share/gtk-doc/html/poppler/api-index-0-22.html +62 -0
- data/vendor/local/share/gtk-doc/html/poppler/api-index-deprecated.html +42 -0
- data/vendor/local/share/gtk-doc/html/poppler/api-index-full.html +1352 -0
- data/vendor/local/share/gtk-doc/html/poppler/ch01.html +21 -19
- data/vendor/local/share/gtk-doc/html/poppler/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/poppler/index.html +35 -18
- data/vendor/local/share/gtk-doc/html/poppler/index.sgml +548 -300
- data/vendor/local/share/gtk-doc/html/poppler/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/poppler/poppler-PopplerAction.html +662 -0
- data/vendor/local/share/gtk-doc/html/poppler/poppler-Version-and-Features-Information.html +145 -0
- data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler.html +319 -364
- data/vendor/local/share/gtk-doc/html/poppler/poppler.devhelp2 +506 -265
- data/vendor/local/share/gtk-doc/html/poppler/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/poppler/style.css +153 -54
- data/vendor/local/share/gtk-doc/html/poppler/up.png +0 -0
- data/vendor/local/share/license/poppler/AUTHORS +5 -0
- data/vendor/local/share/license/poppler/COPYING +339 -0
- data/vendor/local/share/man/man1/cjpeg.1 +51 -10
- data/vendor/local/share/man/man1/djpeg.1 +5 -4
- data/vendor/local/share/man/man1/jpegtran.1 +15 -2
- data/vendor/local/share/man/man1/pdfdetach.1 +86 -0
- data/vendor/local/share/man/man1/pdffonts.1 +16 -7
- data/vendor/local/share/man/man1/pdfimages.1 +114 -7
- data/vendor/local/share/man/man1/pdfinfo.1 +16 -7
- data/vendor/local/share/man/man1/pdfseparate.1 +49 -0
- data/vendor/local/share/man/man1/pdftocairo.1 +266 -0
- data/vendor/local/share/man/man1/pdftohtml.1 +30 -8
- data/vendor/local/share/man/man1/pdftoppm.1 +42 -12
- data/vendor/local/share/man/man1/pdftops.1 +26 -10
- data/vendor/local/share/man/man1/pdftotext.1 +18 -7
- data/vendor/local/share/man/man1/pdfunite.1 +33 -0
- data/vendor/local/share/man/man1/sqlite3.1 +229 -0
- metadata +107 -64
- data/vendor/local/bin/libgcc_s_dw2-1.dll +0 -0
- data/vendor/local/bin/libjpeg-7.dll +0 -0
- data/vendor/local/bin/libpng12-0.dll +0 -0
- data/vendor/local/bin/libpoppler-5.dll +0 -0
- data/vendor/local/bin/libpoppler-glib-4.dll +0 -0
- data/vendor/local/include/libpng12/png.h +0 -3726
- data/vendor/local/include/libpng12/pngconf.h +0 -1508
- data/vendor/local/include/png.h +0 -3726
- data/vendor/local/include/pngconf.h +0 -1508
- data/vendor/local/lib/libpng.def +0 -366
- data/vendor/local/lib/libpng.lib +0 -0
- data/vendor/local/lib/libpng12.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/libpng.pc +0 -11
- data/vendor/local/lib/pkgconfig/libpng12.pc +0 -11
- data/vendor/local/manifest/jpeg-dev_7-1_win32.mft +0 -18
- data/vendor/local/manifest/jpeg_7-1_win32.mft +0 -2
- data/vendor/local/manifest/libpng-dev_1.2.40-1_win32.mft +0 -15
- data/vendor/local/manifest/libpng_1.2.40-1_win32.mft +0 -2
- data/vendor/local/manifest/poppler-dev_0.12.0-1_win32.mft +0 -49
- data/vendor/local/manifest/poppler_0.12.0-1_win32.mft +0 -4
- data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-action.html +0 -386
- data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-annot.html +0 -854
- data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-attachment.html +0 -205
- data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-document.html +0 -1122
- data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-enums.html +0 -412
- data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-features.html +0 -143
- data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-form-field.html +0 -871
- data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-layer.html +0 -214
- data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-page.html +0 -1258
- data/vendor/local/share/gtk-doc/html/poppler/poppler.devhelp +0 -281
- data/vendor/local/share/man/man3/libpng.3 +0 -4349
- data/vendor/local/share/man/man3/libpngpf.3 +0 -790
- data/vendor/local/share/man/man5/png.5 +0 -74
- data/vendor/local/src/tml/packaging/jpeg_7-1_win32.log +0 -249
- data/vendor/local/src/tml/packaging/jpeg_7-1_win32.sh +0 -44
- data/vendor/local/src/tml/packaging/libpng_1.2.40-1_win32.log +0 -269
- data/vendor/local/src/tml/packaging/libpng_1.2.40-1_win32.sh +0 -63
@@ -1,7 +1,6 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
2
|
/*
|
3
|
-
* Copyright (C)
|
4
|
-
* Copyright (C) 2008 Ruby-GNOME2 Project Team
|
3
|
+
* Copyright (C) 2008-2013 Ruby-GNOME2 Project Team
|
5
4
|
*
|
6
5
|
* This library is free software; you can redistribute it and/or
|
7
6
|
* modify it under the terms of the GNU Lesser General Public
|
@@ -87,7 +86,7 @@ rg_inspect(VALUE self)
|
|
87
86
|
}
|
88
87
|
|
89
88
|
void
|
90
|
-
|
89
|
+
Init_poppler_annotation_callout_line(VALUE mPoppler)
|
91
90
|
{
|
92
91
|
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(POPPLER_TYPE_ANNOT_CALLOUT_LINE,
|
93
92
|
"AnnotationCalloutLine", mPoppler);
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
2
|
/*
|
3
|
-
* Copyright (C)
|
4
|
-
* Copyright (C) 2008 Ruby-GNOME2 Project Team
|
3
|
+
* Copyright (C) 2008-2013 Ruby-GNOME2 Project Team
|
5
4
|
*
|
6
5
|
* This library is free software; you can redistribute it and/or
|
7
6
|
* modify it under the terms of the GNU Lesser General Public
|
@@ -37,7 +36,7 @@ rg_callout_line(VALUE self)
|
|
37
36
|
}
|
38
37
|
|
39
38
|
void
|
40
|
-
|
39
|
+
Init_poppler_annotation_free_text(VALUE mPoppler)
|
41
40
|
{
|
42
41
|
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(POPPLER_TYPE_ANNOT_FREE_TEXT,
|
43
42
|
"AnnotationFreeText", mPoppler);
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
2
|
/*
|
3
|
-
* Copyright (C)
|
4
|
-
* Copyright (C) 2006-2008 Ruby-GNOME2 Project Team
|
3
|
+
* Copyright (C) 2006-2013 Ruby-GNOME2 Project Team
|
5
4
|
*
|
6
5
|
* This library is free software; you can redistribute it and/or
|
7
6
|
* modify it under the terms of the GNU Lesser General Public
|
@@ -57,7 +56,7 @@ rg_set_annotation(VALUE self, VALUE annotation)
|
|
57
56
|
}
|
58
57
|
|
59
58
|
void
|
60
|
-
|
59
|
+
Init_poppler_annotation_mapping(VALUE mPoppler)
|
61
60
|
{
|
62
61
|
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(POPPLER_TYPE_ANNOT_MAPPING,
|
63
62
|
"AnnotationMapping", mPoppler);
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
2
|
/*
|
3
|
-
* Copyright (C)
|
4
|
-
* Copyright (C) 2008 Ruby-GNOME2 Project Team
|
3
|
+
* Copyright (C) 2008-2013 Ruby-GNOME2 Project Team
|
5
4
|
*
|
6
5
|
* This library is free software; you can redistribute it and/or
|
7
6
|
* modify it under the terms of the GNU Lesser General Public
|
@@ -79,12 +78,14 @@ rg_external_data(VALUE self)
|
|
79
78
|
}
|
80
79
|
|
81
80
|
void
|
82
|
-
|
81
|
+
Init_poppler_annotation_markup(VALUE mPoppler)
|
83
82
|
{
|
83
|
+
VALUE RG_TARGET_NAMESPACE;
|
84
|
+
|
84
85
|
id_new = rb_intern("new");
|
85
86
|
rb_cDate = rb_const_get(rb_cObject, rb_intern("Date"));
|
86
87
|
|
87
|
-
|
88
|
+
RG_TARGET_NAMESPACE= G_DEF_CLASS(POPPLER_TYPE_ANNOT_MARKUP,
|
88
89
|
"AnnotationMarkup", mPoppler);
|
89
90
|
|
90
91
|
RG_DEF_METHOD(label, 0);
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
2
|
/*
|
3
|
-
* Copyright (C)
|
4
|
-
* Copyright (C) 2008 Ruby-GNOME2 Project Team
|
3
|
+
* Copyright (C) 2008-2013 Ruby-GNOME2 Project Team
|
5
4
|
*
|
6
5
|
* This library is free software; you can redistribute it and/or
|
7
6
|
* modify it under the terms of the GNU Lesser General Public
|
@@ -33,11 +32,7 @@ rg_open_p(VALUE self)
|
|
33
32
|
static VALUE
|
34
33
|
rg_icon(VALUE self)
|
35
34
|
{
|
36
|
-
#if POPPLER_CHECK_VERSION(0, 9, 0)
|
37
35
|
return CSTR2RVAL_FREE(poppler_annot_text_get_icon(SELF(self)));
|
38
|
-
#else
|
39
|
-
return POPPLERANNOTTEXTICON2RVAL(poppler_annot_text_get_icon(SELF(self)));
|
40
|
-
#endif
|
41
36
|
}
|
42
37
|
|
43
38
|
static VALUE
|
@@ -47,7 +42,7 @@ rg_state(VALUE self)
|
|
47
42
|
}
|
48
43
|
|
49
44
|
void
|
50
|
-
|
45
|
+
Init_poppler_annotation_text(VALUE mPoppler)
|
51
46
|
{
|
52
47
|
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(POPPLER_TYPE_ANNOT_TEXT,
|
53
48
|
"AnnotationText", mPoppler);
|
File without changes
|
File without changes
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
2
|
/*
|
3
|
-
* Copyright (C)
|
4
|
-
* Copyright (C) 2006 Ruby-GNOME2 Project Team
|
3
|
+
* Copyright (C) 2006-2013 Ruby-GNOME2 Project Team
|
5
4
|
*
|
6
5
|
* This library is free software; you can redistribute it and/or
|
7
6
|
* modify it under the terms of the GNU Lesser General Public
|
@@ -25,8 +24,6 @@
|
|
25
24
|
|
26
25
|
static VALUE RG_TARGET_NAMESPACE;
|
27
26
|
|
28
|
-
#if POPPLER_CHECK_VERSION(0, 6, 0)
|
29
|
-
|
30
27
|
static ID id_valid;
|
31
28
|
|
32
29
|
static VALUE
|
@@ -49,17 +46,14 @@ rg_scan(VALUE self, VALUE n_pages)
|
|
49
46
|
}
|
50
47
|
return rb_iter;
|
51
48
|
}
|
52
|
-
#endif
|
53
49
|
|
54
50
|
void
|
55
|
-
|
51
|
+
Init_poppler_font_info(VALUE mPoppler)
|
56
52
|
{
|
57
53
|
id_valid = rb_intern("valid?");
|
58
54
|
|
59
55
|
RG_TARGET_NAMESPACE = G_DEF_CLASS(POPPLER_TYPE_FONT_INFO, "FontInfo", mPoppler);
|
60
56
|
|
61
|
-
#if POPPLER_CHECK_VERSION(0, 6, 0)
|
62
57
|
RG_DEF_METHOD(initialize, 1);
|
63
58
|
RG_DEF_METHOD(scan, 1);
|
64
|
-
#endif
|
65
59
|
}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
2
|
/*
|
3
|
-
* Copyright (C)
|
4
|
-
* Copyright (C) 2006 Ruby-GNOME2 Project Team
|
3
|
+
* Copyright (C) 2006-2013 Ruby-GNOME2 Project Team
|
5
4
|
*
|
6
5
|
* This library is free software; you can redistribute it and/or
|
7
6
|
* modify it under the terms of the GNU Lesser General Public
|
@@ -105,19 +104,19 @@ rg_each(VALUE self)
|
|
105
104
|
}
|
106
105
|
|
107
106
|
void
|
108
|
-
|
107
|
+
Init_poppler_fonts_iter(VALUE mPoppler)
|
109
108
|
{
|
109
|
+
VALUE RG_TARGET_NAMESPACE;
|
110
|
+
|
110
111
|
id_valid = rb_intern("valid?");
|
111
112
|
|
112
|
-
|
113
|
+
RG_TARGET_NAMESPACE = G_DEF_CLASS(POPPLER_TYPE_FONTS_ITER, "FontsIter", mPoppler);
|
113
114
|
|
114
115
|
rb_include_module(RG_TARGET_NAMESPACE, rb_mEnumerable);
|
115
116
|
|
116
117
|
RG_DEF_METHOD(name, 0);
|
117
118
|
RG_DEF_METHOD(full_name, 0);
|
118
|
-
#if POPPLER_CHECK_VERSION(0, 6, 0)
|
119
119
|
RG_DEF_METHOD(file_name, 0);
|
120
|
-
#endif
|
121
120
|
RG_DEF_METHOD(font_type, 0);
|
122
121
|
RG_DEF_METHOD_P(embedded, 0);
|
123
122
|
RG_DEF_METHOD_P(subset, 0);
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
2
|
/*
|
3
|
-
* Copyright (C)
|
4
|
-
* Copyright (C) 2006-2008 Ruby-GNOME2 Project Team
|
3
|
+
* Copyright (C) 2006-2013 Ruby-GNOME2 Project Team
|
5
4
|
*
|
6
5
|
* This library is free software; you can redistribute it and/or
|
7
6
|
* modify it under the terms of the GNU Lesser General Public
|
@@ -29,7 +28,7 @@ DEF_ACCESSOR(form_field_mapping, field, RVAL2POPPLERFORMFIELDMAPPING,
|
|
29
28
|
POPPLERFORMFIELD2RVAL, RVAL2POPPLERFORMFIELD)
|
30
29
|
|
31
30
|
void
|
32
|
-
|
31
|
+
Init_poppler_form_field_mapping(VALUE mPoppler)
|
33
32
|
{
|
34
33
|
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(POPPLER_TYPE_FORM_FIELD_MAPPING,
|
35
34
|
"FormFieldMapping", mPoppler);
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
2
|
/*
|
3
|
-
* Copyright (C)
|
4
|
-
* Copyright (C) 2006-2008 Ruby-GNOME2 Project Team
|
3
|
+
* Copyright (C) 2006-2013 Ruby-GNOME2 Project Team
|
5
4
|
*
|
6
5
|
* This library is free software; you can redistribute it and/or
|
7
6
|
* modify it under the terms of the GNU Lesser General Public
|
@@ -26,26 +25,22 @@
|
|
26
25
|
DEF_ACCESSOR_WITH_SETTER(image_mapping, area,
|
27
26
|
RVAL2POPPLERIMAGEMAPPING, RECT_ENTITY2RVAL, RECT_ENTITY_SET)
|
28
27
|
DEF_ACCESSOR(image_mapping, image_id, RVAL2POPPLERIMAGEMAPPING, INT2NUM, NUM2INT)
|
29
|
-
#ifdef RB_POPPLER_CAIRO_AVAILABLE
|
30
28
|
static VALUE
|
31
29
|
rg_image(VALUE self)
|
32
30
|
{
|
33
31
|
return rb_funcall(rb_iv_get(self, "@page"), rb_intern("get_image"),
|
34
32
|
1, INT2NUM(RVAL2POPPLERIMAGEMAPPING(self)->image_id));
|
35
33
|
}
|
36
|
-
#endif
|
37
34
|
|
38
35
|
void
|
39
|
-
|
36
|
+
Init_poppler_image_mapping(VALUE mPoppler)
|
40
37
|
{
|
41
38
|
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(POPPLER_TYPE_IMAGE_MAPPING,
|
42
39
|
"ImageMapping", mPoppler);
|
43
40
|
|
44
41
|
rbg_define_method(RG_TARGET_NAMESPACE, "area", image_mapping_get_area, 0);
|
45
42
|
rbg_define_method(RG_TARGET_NAMESPACE, "image_id", image_mapping_get_image_id, 0);
|
46
|
-
#ifdef RB_POPPLER_CAIRO_AVAILABLE
|
47
43
|
RG_DEF_METHOD(image, 0);
|
48
|
-
#endif
|
49
44
|
|
50
45
|
rbg_define_method(RG_TARGET_NAMESPACE, "set_area", image_mapping_set_area, 1);
|
51
46
|
rbg_define_method(RG_TARGET_NAMESPACE, "set_image_id",
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
2
|
/*
|
3
|
-
* Copyright (C)
|
4
|
-
* Copyright (C) 2006 Ruby-GNOME2 Project Team
|
3
|
+
* Copyright (C) 2006-2013 Ruby-GNOME2 Project Team
|
5
4
|
*
|
6
5
|
* This library is free software; you can redistribute it and/or
|
7
6
|
* modify it under the terms of the GNU Lesser General Public
|
@@ -107,7 +106,7 @@ rg_each(VALUE self)
|
|
107
106
|
}
|
108
107
|
|
109
108
|
void
|
110
|
-
|
109
|
+
Init_poppler_index_iter(VALUE mPoppler)
|
111
110
|
{
|
112
111
|
id_valid = rb_intern("valid?");
|
113
112
|
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
2
|
/*
|
3
|
-
* Copyright (C)
|
4
|
-
* Copyright (C) 2006-2008 Ruby-GNOME2 Project Team
|
3
|
+
* Copyright (C) 2006-2013 Ruby-GNOME2 Project Team
|
5
4
|
*
|
6
5
|
* This library is free software; you can redistribute it and/or
|
7
6
|
* modify it under the terms of the GNU Lesser General Public
|
@@ -35,7 +34,7 @@ DEF_ACCESSOR(link_mapping, action, RVAL2POPPLERLINKMAPPING,
|
|
35
34
|
POPPLERACTION2RVAL, RVAL2POPPLERACTION)
|
36
35
|
|
37
36
|
void
|
38
|
-
|
37
|
+
Init_poppler_link_mapping(VALUE mPoppler)
|
39
38
|
{
|
40
39
|
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(POPPLER_TYPE_LINK_MAPPING, "LinkMapping",
|
41
40
|
mPoppler);
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
2
|
/*
|
3
|
-
* Copyright (C)
|
4
|
-
* Copyright (C) 2006-2008 Ruby-GNOME2 Project Team
|
3
|
+
* Copyright (C) 2006-2013 Ruby-GNOME2 Project Team
|
5
4
|
*
|
6
5
|
* This library is free software; you can redistribute it and/or
|
7
6
|
* modify it under the terms of the GNU Lesser General Public
|
@@ -32,7 +31,7 @@ DEF_ACCESSOR(page_trans, scale, RVAL2POPPLERPAGETRANSITION, NUM2DBL, rb_float_ne
|
|
32
31
|
DEF_ACCESSOR(page_trans, rectangular, RVAL2POPPLERPAGETRANSITION, RVAL2CBOOL, CBOOL2RVAL)
|
33
32
|
|
34
33
|
void
|
35
|
-
|
34
|
+
Init_poppler_page_transition(VALUE mPoppler)
|
36
35
|
{
|
37
36
|
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(POPPLER_TYPE_PAGE_TRANSITION,
|
38
37
|
"PageTransition", mPoppler);
|
@@ -27,14 +27,12 @@
|
|
27
27
|
static VALUE cRectangle;
|
28
28
|
static VALUE cPSFile;
|
29
29
|
|
30
|
-
#ifdef RB_POPPLER_CAIRO_AVAILABLE
|
31
30
|
static VALUE
|
32
31
|
page_render(VALUE self, VALUE cairo)
|
33
32
|
{
|
34
33
|
poppler_page_render(SELF(self), RVAL2CRCONTEXT(cairo));
|
35
34
|
return Qnil;
|
36
35
|
}
|
37
|
-
#endif
|
38
36
|
|
39
37
|
static VALUE
|
40
38
|
page_render_to_ps(VALUE self, VALUE ps_file)
|
@@ -49,34 +47,23 @@ rg_render(VALUE self, VALUE ps_file_or_cairo)
|
|
49
47
|
if (RVAL2CBOOL(rb_obj_is_kind_of(ps_file_or_cairo, cPSFile))) {
|
50
48
|
return page_render_to_ps(self, ps_file_or_cairo);
|
51
49
|
} else {
|
52
|
-
#ifdef RB_POPPLER_CAIRO_AVAILABLE
|
53
50
|
return page_render(self, ps_file_or_cairo);
|
54
|
-
#else
|
55
|
-
rb_raise(rb_eArgError, "cairo is not available");
|
56
|
-
#endif
|
57
51
|
}
|
58
52
|
}
|
59
53
|
|
60
|
-
#ifdef RB_POPPLER_CAIRO_AVAILABLE
|
61
54
|
static VALUE
|
62
55
|
page_render_for_printing(VALUE self, VALUE cairo)
|
63
56
|
{
|
64
57
|
poppler_page_render_for_printing(SELF(self), RVAL2CRCONTEXT(cairo));
|
65
58
|
return Qnil;
|
66
59
|
}
|
67
|
-
#endif
|
68
60
|
|
69
61
|
static VALUE
|
70
62
|
rg_render_for_printing(VALUE self, VALUE cairo)
|
71
63
|
{
|
72
|
-
#ifdef RB_POPPLER_CAIRO_AVAILABLE
|
73
64
|
return page_render_for_printing(self, cairo);
|
74
|
-
#else
|
75
|
-
rb_raise(rb_eArgError, "cairo is not available");
|
76
|
-
#endif
|
77
65
|
}
|
78
66
|
|
79
|
-
#ifdef RB_POPPLER_CAIRO_AVAILABLE
|
80
67
|
static VALUE
|
81
68
|
page_render_selection(VALUE self, VALUE cairo,
|
82
69
|
VALUE selection, VALUE rb_old_selection,
|
@@ -94,19 +81,14 @@ page_render_selection(VALUE self, VALUE cairo,
|
|
94
81
|
RVAL2POPPLERCOLOR(background_color));
|
95
82
|
return Qnil;
|
96
83
|
}
|
97
|
-
#endif
|
98
84
|
|
99
85
|
static VALUE
|
100
86
|
rg_render_selection(VALUE self,
|
101
87
|
VALUE cairo, VALUE selection, VALUE old_selection,
|
102
88
|
VALUE style, VALUE glyph_color, VALUE background_color)
|
103
89
|
{
|
104
|
-
#ifdef RB_POPPLER_CAIRO_AVAILABLE
|
105
90
|
return page_render_selection(self, cairo, selection, old_selection,
|
106
91
|
style, glyph_color, background_color);
|
107
|
-
#else
|
108
|
-
rb_raise(rb_eArgError, "cairo is not available");
|
109
|
-
#endif
|
110
92
|
}
|
111
93
|
|
112
94
|
static VALUE
|
@@ -135,13 +117,11 @@ rg_transition(VALUE self)
|
|
135
117
|
return POPPLERPAGETRANSITION2RVAL(poppler_page_get_transition(SELF(self)));
|
136
118
|
}
|
137
119
|
|
138
|
-
#if RB_POPPLER_CAIRO_AVAILABLE
|
139
120
|
static VALUE
|
140
121
|
rg_thumbnail(VALUE self)
|
141
122
|
{
|
142
123
|
return CRSURFACE2RVAL(poppler_page_get_thumbnail(SELF(self)));
|
143
124
|
}
|
144
|
-
#endif
|
145
125
|
|
146
126
|
static VALUE
|
147
127
|
rg_thumbnail_size(VALUE self)
|
@@ -273,23 +253,18 @@ rg_image_mapping(VALUE self)
|
|
273
253
|
|
274
254
|
image_mapping = node->data;
|
275
255
|
mapping = POPPLERIMAGEMAPPING2RVAL(image_mapping);
|
276
|
-
#ifdef RB_POPPLER_CAIRO_AVAILABLE
|
277
256
|
rb_iv_set(mapping, "@page", self);
|
278
|
-
#endif
|
279
|
-
rb_ary_push(mappings, mapping);
|
280
257
|
}
|
281
258
|
poppler_page_free_image_mapping(image_mapping);
|
282
259
|
|
283
260
|
return mappings;
|
284
261
|
}
|
285
262
|
|
286
|
-
#ifdef RB_POPPLER_CAIRO_AVAILABLE
|
287
263
|
static VALUE
|
288
264
|
rg_get_image(VALUE self, VALUE image_id)
|
289
265
|
{
|
290
266
|
return CRSURFACE2RVAL(poppler_page_get_image(SELF(self), NUM2INT(image_id)));
|
291
267
|
}
|
292
|
-
#endif
|
293
268
|
|
294
269
|
static VALUE
|
295
270
|
rg_form_field_mapping(VALUE self)
|
@@ -328,9 +303,7 @@ Init_poppler_page(VALUE mPoppler)
|
|
328
303
|
RG_DEF_METHOD(duration, 0);
|
329
304
|
RG_DEF_METHOD(transition, 0);
|
330
305
|
|
331
|
-
#if RB_POPPLER_CAIRO_AVAILABLE
|
332
306
|
RG_DEF_METHOD(thumbnail, 0);
|
333
|
-
#endif
|
334
307
|
RG_DEF_METHOD(thumbnail_size, 0);
|
335
308
|
RG_DEF_METHOD(find_text, 1);
|
336
309
|
RG_DEF_METHOD(get_text, -1);
|
@@ -340,9 +313,7 @@ Init_poppler_page(VALUE mPoppler)
|
|
340
313
|
RG_DEF_METHOD(get_selection_region, 3);
|
341
314
|
RG_DEF_METHOD(link_mapping, 0);
|
342
315
|
RG_DEF_METHOD(image_mapping, 0);
|
343
|
-
#if RB_POPPLER_CAIRO_AVAILABLE
|
344
316
|
RG_DEF_METHOD(get_image, 1);
|
345
|
-
#endif
|
346
317
|
|
347
318
|
RG_DEF_METHOD(form_field_mapping, 0);
|
348
319
|
RG_DEF_METHOD(annotation_mapping, 0);
|
@@ -5,26 +5,26 @@
|
|
5
5
|
|
6
6
|
#define RVAL2GDKPIXBUF(o) (GDK_PIXBUF(RVAL2GOBJ(o)))
|
7
7
|
|
8
|
-
G_GNUC_INTERNAL void
|
9
|
-
G_GNUC_INTERNAL void
|
8
|
+
G_GNUC_INTERNAL void Init_poppler_index_iter(VALUE mPoppler);
|
9
|
+
G_GNUC_INTERNAL void Init_poppler_font_info(VALUE mPoppler);
|
10
10
|
G_GNUC_INTERNAL void Init_poppler_document(VALUE mPoppler);
|
11
|
-
G_GNUC_INTERNAL void
|
12
|
-
G_GNUC_INTERNAL void
|
11
|
+
G_GNUC_INTERNAL void Init_poppler_fonts_iter(VALUE mPoppler);
|
12
|
+
G_GNUC_INTERNAL void Init_poppler_ps_file(VALUE mPoppler);
|
13
13
|
G_GNUC_INTERNAL void Init_poppler_rectangle(VALUE mPoppler);
|
14
14
|
G_GNUC_INTERNAL void Init_poppler_page(VALUE mPoppler);
|
15
15
|
G_GNUC_INTERNAL void Init_poppler_color(VALUE mPoppler);
|
16
|
-
G_GNUC_INTERNAL void
|
17
|
-
G_GNUC_INTERNAL void
|
18
|
-
G_GNUC_INTERNAL void
|
19
|
-
G_GNUC_INTERNAL void
|
20
|
-
G_GNUC_INTERNAL void
|
16
|
+
G_GNUC_INTERNAL void Init_poppler_link_mapping(VALUE mPoppler);
|
17
|
+
G_GNUC_INTERNAL void Init_poppler_page_transition(VALUE mPoppler);
|
18
|
+
G_GNUC_INTERNAL void Init_poppler_image_mapping(VALUE mPoppler);
|
19
|
+
G_GNUC_INTERNAL void Init_poppler_form_field_mapping(VALUE mPoppler);
|
20
|
+
G_GNUC_INTERNAL void Init_poppler_annotation_mapping(VALUE mPoppler);
|
21
21
|
G_GNUC_INTERNAL void Init_poppler_attachment(VALUE mPoppler);
|
22
22
|
G_GNUC_INTERNAL void Init_poppler_action(VALUE mPoppler);
|
23
23
|
G_GNUC_INTERNAL void Init_poppler_annotation(VALUE mPoppler);
|
24
|
-
G_GNUC_INTERNAL void
|
25
|
-
G_GNUC_INTERNAL void
|
26
|
-
G_GNUC_INTERNAL void
|
27
|
-
G_GNUC_INTERNAL void
|
24
|
+
G_GNUC_INTERNAL void Init_poppler_annotation_markup(VALUE mPoppler);
|
25
|
+
G_GNUC_INTERNAL void Init_poppler_annotation_text(VALUE mPoppler);
|
26
|
+
G_GNUC_INTERNAL void Init_poppler_annotation_free_text(VALUE mPoppler);
|
27
|
+
G_GNUC_INTERNAL void Init_poppler_annotation_callout_line(VALUE mPoppler);
|
28
28
|
G_GNUC_INTERNAL void Init_poppler_form_field(VALUE mPoppler);
|
29
29
|
G_GNUC_INTERNAL void Init_poppler_button_field(VALUE mPoppler, VALUE cFormField);
|
30
30
|
G_GNUC_INTERNAL void Init_poppler_text_field(VALUE mPoppler, VALUE cFormField);
|