poppler 2.0.2-x86-mingw32 → 2.0.3-x86-mingw32

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.
Files changed (173) hide show
  1. checksums.yaml +7 -0
  2. data/README +1 -1
  3. data/Rakefile +69 -9
  4. data/ext/poppler/extconf.rb +5 -2
  5. data/ext/poppler/rbpoppler-action.c +242 -86
  6. data/ext/poppler/{rbpoppler-annotationcalloutline.c → rbpoppler-annotation-callout-line.c} +2 -3
  7. data/ext/poppler/{rbpoppler-annotationfreetext.c → rbpoppler-annotation-free-text.c} +2 -3
  8. data/ext/poppler/{rbpoppler-annotationmapping.c → rbpoppler-annotation-mapping.c} +2 -3
  9. data/ext/poppler/{rbpoppler-annotationmarkup.c → rbpoppler-annotation-markup.c} +5 -4
  10. data/ext/poppler/{rbpoppler-annotationtext.c → rbpoppler-annotation-text.c} +2 -7
  11. data/ext/poppler/{rbpoppler-buttonfield.c → rbpoppler-button-field.c} +0 -0
  12. data/ext/poppler/{rbpoppler-choicefield.c → rbpoppler-choice-field.c} +0 -0
  13. data/ext/poppler/{rbpoppler-fontinfo.c → rbpoppler-font-info.c} +2 -8
  14. data/ext/poppler/{rbpoppler-fontsiter.c → rbpoppler-fonts-iter.c} +5 -6
  15. data/ext/poppler/{rbpoppler-formfieldmapping.c → rbpoppler-form-field-mapping.c} +2 -3
  16. data/ext/poppler/{rbpoppler-imagemapping.c → rbpoppler-image-mapping.c} +2 -7
  17. data/ext/poppler/{rbpoppler-indexiter.c → rbpoppler-index-iter.c} +2 -3
  18. data/ext/poppler/{rbpoppler-linkmapping.c → rbpoppler-link-mapping.c} +2 -3
  19. data/ext/poppler/{rbpoppler-pagetransition.c → rbpoppler-page-transition.c} +2 -3
  20. data/ext/poppler/rbpoppler-page.c +0 -29
  21. data/ext/poppler/rbpoppler-private.h +13 -13
  22. data/ext/poppler/{rbpoppler-psfile.c → rbpoppler-ps-file.c} +2 -3
  23. data/ext/poppler/{rbpoppler-textfield.c → rbpoppler-text-field.c} +0 -0
  24. data/ext/poppler/rbpoppler.c +14 -22
  25. data/ext/poppler/rbpoppler.h +3 -6
  26. data/ext/poppler/rbpopplerconversions.h +1 -1
  27. data/lib/1.9/poppler.so +0 -0
  28. data/lib/2.0/poppler.so +0 -0
  29. data/sample/pdf2.rb +46 -10
  30. data/test/fixtures/image.png +0 -0
  31. data/test/run-test.rb +7 -4
  32. data/test/test_page.rb +1 -0
  33. data/vendor/local/bin/cjpeg.exe +0 -0
  34. data/vendor/local/bin/djpeg.exe +0 -0
  35. data/vendor/local/bin/jpegtran.exe +0 -0
  36. data/vendor/local/bin/libjpeg-9.dll +0 -0
  37. data/vendor/local/bin/libpoppler-44.dll +0 -0
  38. data/vendor/local/bin/libpoppler-glib-8.dll +0 -0
  39. data/vendor/local/bin/libsqlite3-0.dll +0 -0
  40. data/vendor/local/bin/pdfdetach.exe +0 -0
  41. data/vendor/local/bin/pdffonts.exe +0 -0
  42. data/vendor/local/bin/pdfimages.exe +0 -0
  43. data/vendor/local/bin/pdfinfo.exe +0 -0
  44. data/vendor/local/bin/pdfseparate.exe +0 -0
  45. data/vendor/local/bin/pdftocairo.exe +0 -0
  46. data/vendor/local/bin/pdftohtml.exe +0 -0
  47. data/vendor/local/bin/pdftoppm.exe +0 -0
  48. data/vendor/local/bin/pdftops.exe +0 -0
  49. data/vendor/local/bin/pdftotext.exe +0 -0
  50. data/vendor/local/bin/pdfunite.exe +0 -0
  51. data/vendor/local/bin/rdjpgcom.exe +0 -0
  52. data/vendor/local/bin/sqlite3.exe +0 -0
  53. data/vendor/local/bin/wrjpgcom.exe +0 -0
  54. data/vendor/local/include/jconfig.h +8 -0
  55. data/vendor/local/include/jerror.h +2 -2
  56. data/vendor/local/include/jmorecfg.h +28 -7
  57. data/vendor/local/include/jpeglib.h +46 -8
  58. data/vendor/local/include/poppler/glib/poppler-action.h +156 -2
  59. data/vendor/local/include/poppler/glib/poppler-annot.h +57 -1
  60. data/vendor/local/include/poppler/glib/poppler-attachment.h +17 -0
  61. data/vendor/local/include/poppler/glib/poppler-document.h +133 -26
  62. data/vendor/local/include/poppler/glib/poppler-enums.h +8 -0
  63. data/vendor/local/include/poppler/glib/poppler-features.h +58 -4
  64. data/vendor/local/include/poppler/glib/poppler-form-field.h +4 -0
  65. data/vendor/local/include/poppler/glib/poppler-media.h +73 -0
  66. data/vendor/local/include/poppler/glib/poppler-movie.h +42 -0
  67. data/vendor/local/include/poppler/glib/poppler-page.h +133 -44
  68. data/vendor/local/include/poppler/glib/poppler.h +125 -24
  69. data/vendor/local/include/sqlite3.h +7338 -0
  70. data/vendor/local/include/sqlite3ext.h +487 -0
  71. data/vendor/local/lib/girepository-1.0/Poppler-0.18.typelib +0 -0
  72. data/vendor/local/lib/libjpeg.a +0 -0
  73. data/vendor/local/lib/libjpeg.dll.a +0 -0
  74. data/vendor/local/lib/libjpeg.la +41 -0
  75. data/vendor/local/lib/libpoppler-glib.a +0 -0
  76. data/vendor/local/lib/libpoppler-glib.dll.a +0 -0
  77. data/vendor/local/lib/libpoppler-glib.la +41 -0
  78. data/vendor/local/lib/libpoppler.a +0 -0
  79. data/vendor/local/lib/libpoppler.dll.a +0 -0
  80. data/vendor/local/lib/libpoppler.la +41 -0
  81. data/vendor/local/lib/libsqlite3.a +0 -0
  82. data/vendor/local/lib/libsqlite3.dll.a +0 -0
  83. data/vendor/local/lib/libsqlite3.la +41 -0
  84. data/vendor/local/lib/pkgconfig/poppler-cairo.pc +9 -0
  85. data/vendor/local/lib/pkgconfig/poppler-glib.pc +3 -3
  86. data/vendor/local/lib/pkgconfig/poppler-splash.pc +2 -2
  87. data/vendor/local/lib/pkgconfig/poppler.pc +1 -1
  88. data/vendor/local/lib/pkgconfig/sqlite3.pc +13 -0
  89. data/vendor/local/share/gir-1.0/Poppler-0.18.gir +5452 -0
  90. data/vendor/local/share/gtk-doc/html/poppler/PopplerAnnot.html +1671 -0
  91. data/vendor/local/share/gtk-doc/html/poppler/PopplerAttachment.html +214 -0
  92. data/vendor/local/share/gtk-doc/html/poppler/PopplerDocument.html +2587 -0
  93. data/vendor/local/share/gtk-doc/html/poppler/PopplerFormField.html +1070 -0
  94. data/vendor/local/share/gtk-doc/html/poppler/PopplerLayer.html +228 -0
  95. data/vendor/local/share/gtk-doc/html/poppler/PopplerMedia.html +306 -0
  96. data/vendor/local/share/gtk-doc/html/poppler/PopplerMovie.html +156 -0
  97. data/vendor/local/share/gtk-doc/html/poppler/PopplerPage.html +2132 -0
  98. data/vendor/local/share/gtk-doc/html/poppler/annotation-glossary.html +71 -0
  99. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-12.html +128 -0
  100. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-14.html +107 -0
  101. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-16.html +185 -0
  102. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-18.html +77 -0
  103. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-20.html +42 -0
  104. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-22.html +62 -0
  105. data/vendor/local/share/gtk-doc/html/poppler/api-index-deprecated.html +42 -0
  106. data/vendor/local/share/gtk-doc/html/poppler/api-index-full.html +1352 -0
  107. data/vendor/local/share/gtk-doc/html/poppler/ch01.html +21 -19
  108. data/vendor/local/share/gtk-doc/html/poppler/home.png +0 -0
  109. data/vendor/local/share/gtk-doc/html/poppler/index.html +35 -18
  110. data/vendor/local/share/gtk-doc/html/poppler/index.sgml +548 -300
  111. data/vendor/local/share/gtk-doc/html/poppler/left.png +0 -0
  112. data/vendor/local/share/gtk-doc/html/poppler/poppler-PopplerAction.html +662 -0
  113. data/vendor/local/share/gtk-doc/html/poppler/poppler-Version-and-Features-Information.html +145 -0
  114. data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler.html +319 -364
  115. data/vendor/local/share/gtk-doc/html/poppler/poppler.devhelp2 +506 -265
  116. data/vendor/local/share/gtk-doc/html/poppler/right.png +0 -0
  117. data/vendor/local/share/gtk-doc/html/poppler/style.css +153 -54
  118. data/vendor/local/share/gtk-doc/html/poppler/up.png +0 -0
  119. data/vendor/local/share/license/poppler/AUTHORS +5 -0
  120. data/vendor/local/share/license/poppler/COPYING +339 -0
  121. data/vendor/local/share/man/man1/cjpeg.1 +51 -10
  122. data/vendor/local/share/man/man1/djpeg.1 +5 -4
  123. data/vendor/local/share/man/man1/jpegtran.1 +15 -2
  124. data/vendor/local/share/man/man1/pdfdetach.1 +86 -0
  125. data/vendor/local/share/man/man1/pdffonts.1 +16 -7
  126. data/vendor/local/share/man/man1/pdfimages.1 +114 -7
  127. data/vendor/local/share/man/man1/pdfinfo.1 +16 -7
  128. data/vendor/local/share/man/man1/pdfseparate.1 +49 -0
  129. data/vendor/local/share/man/man1/pdftocairo.1 +266 -0
  130. data/vendor/local/share/man/man1/pdftohtml.1 +30 -8
  131. data/vendor/local/share/man/man1/pdftoppm.1 +42 -12
  132. data/vendor/local/share/man/man1/pdftops.1 +26 -10
  133. data/vendor/local/share/man/man1/pdftotext.1 +18 -7
  134. data/vendor/local/share/man/man1/pdfunite.1 +33 -0
  135. data/vendor/local/share/man/man1/sqlite3.1 +229 -0
  136. metadata +107 -64
  137. data/vendor/local/bin/libgcc_s_dw2-1.dll +0 -0
  138. data/vendor/local/bin/libjpeg-7.dll +0 -0
  139. data/vendor/local/bin/libpng12-0.dll +0 -0
  140. data/vendor/local/bin/libpoppler-5.dll +0 -0
  141. data/vendor/local/bin/libpoppler-glib-4.dll +0 -0
  142. data/vendor/local/include/libpng12/png.h +0 -3726
  143. data/vendor/local/include/libpng12/pngconf.h +0 -1508
  144. data/vendor/local/include/png.h +0 -3726
  145. data/vendor/local/include/pngconf.h +0 -1508
  146. data/vendor/local/lib/libpng.def +0 -366
  147. data/vendor/local/lib/libpng.lib +0 -0
  148. data/vendor/local/lib/libpng12.dll.a +0 -0
  149. data/vendor/local/lib/pkgconfig/libpng.pc +0 -11
  150. data/vendor/local/lib/pkgconfig/libpng12.pc +0 -11
  151. data/vendor/local/manifest/jpeg-dev_7-1_win32.mft +0 -18
  152. data/vendor/local/manifest/jpeg_7-1_win32.mft +0 -2
  153. data/vendor/local/manifest/libpng-dev_1.2.40-1_win32.mft +0 -15
  154. data/vendor/local/manifest/libpng_1.2.40-1_win32.mft +0 -2
  155. data/vendor/local/manifest/poppler-dev_0.12.0-1_win32.mft +0 -49
  156. data/vendor/local/manifest/poppler_0.12.0-1_win32.mft +0 -4
  157. data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-action.html +0 -386
  158. data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-annot.html +0 -854
  159. data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-attachment.html +0 -205
  160. data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-document.html +0 -1122
  161. data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-enums.html +0 -412
  162. data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-features.html +0 -143
  163. data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-form-field.html +0 -871
  164. data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-layer.html +0 -214
  165. data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-page.html +0 -1258
  166. data/vendor/local/share/gtk-doc/html/poppler/poppler.devhelp +0 -281
  167. data/vendor/local/share/man/man3/libpng.3 +0 -4349
  168. data/vendor/local/share/man/man3/libpngpf.3 +0 -790
  169. data/vendor/local/share/man/man5/png.5 +0 -74
  170. data/vendor/local/src/tml/packaging/jpeg_7-1_win32.log +0 -249
  171. data/vendor/local/src/tml/packaging/jpeg_7-1_win32.sh +0 -44
  172. data/vendor/local/src/tml/packaging/libpng_1.2.40-1_win32.log +0 -269
  173. 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) 2011 Ruby-GNOME2 Project Team
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
- Init_poppler_annotationcalloutline(VALUE mPoppler)
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) 2011 Ruby-GNOME2 Project Team
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
- Init_poppler_annotationfreetext(VALUE mPoppler)
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) 2011 Ruby-GNOME2 Project Team
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
- Init_poppler_annotationmapping(VALUE mPoppler)
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) 2011 Ruby-GNOME2 Project Team
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
- Init_poppler_annotationmarkup(VALUE mPoppler)
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
- VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(POPPLER_TYPE_ANNOT_MARKUP,
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) 2011 Ruby-GNOME2 Project Team
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
- Init_poppler_annotationtext(VALUE mPoppler)
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);
@@ -1,7 +1,6 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
2
  /*
3
- * Copyright (C) 2011 Ruby-GNOME2 Project Team
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
- Init_poppler_fontinfo(VALUE mPoppler)
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) 2011 Ruby-GNOME2 Project Team
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
- Init_poppler_fontsiter(VALUE mPoppler)
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
- VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(POPPLER_TYPE_FONTS_ITER, "FontsIter", mPoppler);
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) 2011 Ruby-GNOME2 Project Team
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
- Init_poppler_formfieldmapping(VALUE mPoppler)
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) 2011 Ruby-GNOME2 Project Team
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
- Init_poppler_imagemapping(VALUE mPoppler)
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) 2011 Ruby-GNOME2 Project Team
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
- Init_poppler_indexiter(VALUE mPoppler)
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) 2011 Ruby-GNOME2 Project Team
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
- Init_poppler_linkmapping(VALUE mPoppler)
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) 2011 Ruby-GNOME2 Project Team
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
- Init_poppler_pagetransition(VALUE mPoppler)
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 Init_poppler_indexiter(VALUE mPoppler);
9
- G_GNUC_INTERNAL void Init_poppler_fontinfo(VALUE mPoppler);
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 Init_poppler_fontsiter(VALUE mPoppler);
12
- G_GNUC_INTERNAL void Init_poppler_psfile(VALUE mPoppler);
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 Init_poppler_linkmapping(VALUE mPoppler);
17
- G_GNUC_INTERNAL void Init_poppler_pagetransition(VALUE mPoppler);
18
- G_GNUC_INTERNAL void Init_poppler_imagemapping(VALUE mPoppler);
19
- G_GNUC_INTERNAL void Init_poppler_formfieldmapping(VALUE mPoppler);
20
- G_GNUC_INTERNAL void Init_poppler_annotationmapping(VALUE mPoppler);
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 Init_poppler_annotationmarkup(VALUE mPoppler);
25
- G_GNUC_INTERNAL void Init_poppler_annotationtext(VALUE mPoppler);
26
- G_GNUC_INTERNAL void Init_poppler_annotationfreetext(VALUE mPoppler);
27
- G_GNUC_INTERNAL void Init_poppler_annotationcalloutline(VALUE mPoppler);
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);