poppler 2.2.4-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +7 -0
  2. data/README +35 -0
  3. data/Rakefile +75 -0
  4. data/ext/poppler/depend +6 -0
  5. data/ext/poppler/extconf.rb +70 -0
  6. data/ext/poppler/poppler.def +2 -0
  7. data/ext/poppler/rbpoppler-action.c +372 -0
  8. data/ext/poppler/rbpoppler-annotation-callout-line.c +127 -0
  9. data/ext/poppler/rbpoppler-annotation-free-text.c +46 -0
  10. data/ext/poppler/rbpoppler-annotation-mapping.c +72 -0
  11. data/ext/poppler/rbpoppler-annotation-markup.c +98 -0
  12. data/ext/poppler/rbpoppler-annotation-text.c +53 -0
  13. data/ext/poppler/rbpoppler-annotation.c +74 -0
  14. data/ext/poppler/rbpoppler-attachment.c +124 -0
  15. data/ext/poppler/rbpoppler-button-field.c +56 -0
  16. data/ext/poppler/rbpoppler-choice-field.c +131 -0
  17. data/ext/poppler/rbpoppler-color.c +107 -0
  18. data/ext/poppler/rbpoppler-document.c +224 -0
  19. data/ext/poppler/rbpoppler-font-info.c +59 -0
  20. data/ext/poppler/rbpoppler-fonts-iter.c +127 -0
  21. data/ext/poppler/rbpoppler-form-field-mapping.c +44 -0
  22. data/ext/poppler/rbpoppler-form-field.c +98 -0
  23. data/ext/poppler/rbpoppler-image-mapping.c +48 -0
  24. data/ext/poppler/rbpoppler-index-iter.c +128 -0
  25. data/ext/poppler/rbpoppler-link-mapping.c +47 -0
  26. data/ext/poppler/rbpoppler-page-transition.c +59 -0
  27. data/ext/poppler/rbpoppler-page.c +322 -0
  28. data/ext/poppler/rbpoppler-private.h +77 -0
  29. data/ext/poppler/rbpoppler-ps-file.c +66 -0
  30. data/ext/poppler/rbpoppler-rectangle.c +92 -0
  31. data/ext/poppler/rbpoppler-text-field.c +91 -0
  32. data/ext/poppler/rbpoppler.c +111 -0
  33. data/ext/poppler/rbpoppler.h +61 -0
  34. data/ext/poppler/rbpopplerconversions.h +105 -0
  35. data/extconf.rb +49 -0
  36. data/lib/2.0/poppler.so +0 -0
  37. data/lib/2.1/poppler.so +0 -0
  38. data/lib/2.2/poppler.so +0 -0
  39. data/lib/poppler.rb +105 -0
  40. data/sample/number-pdf.rb +32 -0
  41. data/sample/pdf2.rb +132 -0
  42. data/sample/pdf2svg.rb +26 -0
  43. data/sample/pdf2text.rb +16 -0
  44. data/sample/pdfcrop.rb +32 -0
  45. data/sample/pdfdiv.rb +36 -0
  46. data/test/fixtures/image.pdf +0 -0
  47. data/test/fixtures/image.png +0 -0
  48. data/test/poppler-test-utils.rb +58 -0
  49. data/test/run-test.rb +32 -0
  50. data/test/test_annotation.rb +86 -0
  51. data/test/test_color.rb +26 -0
  52. data/test/test_constants.rb +30 -0
  53. data/test/test_document.rb +41 -0
  54. data/test/test_page.rb +42 -0
  55. data/vendor/local/bin/cjpeg.exe +0 -0
  56. data/vendor/local/bin/djpeg.exe +0 -0
  57. data/vendor/local/bin/jpegtran.exe +0 -0
  58. data/vendor/local/bin/libjpeg-9.dll +0 -0
  59. data/vendor/local/bin/libpoppler-48.dll +0 -0
  60. data/vendor/local/bin/libpoppler-cpp-0.dll +0 -0
  61. data/vendor/local/bin/libpoppler-glib-8.dll +0 -0
  62. data/vendor/local/bin/libsqlite3-0.dll +0 -0
  63. data/vendor/local/bin/pdfdetach.exe +0 -0
  64. data/vendor/local/bin/pdffonts.exe +0 -0
  65. data/vendor/local/bin/pdfimages.exe +0 -0
  66. data/vendor/local/bin/pdfinfo.exe +0 -0
  67. data/vendor/local/bin/pdfseparate.exe +0 -0
  68. data/vendor/local/bin/pdftocairo.exe +0 -0
  69. data/vendor/local/bin/pdftohtml.exe +0 -0
  70. data/vendor/local/bin/pdftoppm.exe +0 -0
  71. data/vendor/local/bin/pdftops.exe +0 -0
  72. data/vendor/local/bin/pdftotext.exe +0 -0
  73. data/vendor/local/bin/pdfunite.exe +0 -0
  74. data/vendor/local/bin/rdjpgcom.exe +0 -0
  75. data/vendor/local/bin/sqlite3.exe +0 -0
  76. data/vendor/local/bin/wrjpgcom.exe +0 -0
  77. data/vendor/local/include/jconfig.h +60 -0
  78. data/vendor/local/include/jerror.h +304 -0
  79. data/vendor/local/include/jmorecfg.h +446 -0
  80. data/vendor/local/include/jpeglib.h +1180 -0
  81. data/vendor/local/include/poppler/cpp/poppler-document.h +104 -0
  82. data/vendor/local/include/poppler/cpp/poppler-embedded-file.h +55 -0
  83. data/vendor/local/include/poppler/cpp/poppler-font.h +91 -0
  84. data/vendor/local/include/poppler/cpp/poppler-global.h +111 -0
  85. data/vendor/local/include/poppler/cpp/poppler-image.h +71 -0
  86. data/vendor/local/include/poppler/cpp/poppler-page-renderer.h +66 -0
  87. data/vendor/local/include/poppler/cpp/poppler-page-transition.h +82 -0
  88. data/vendor/local/include/poppler/cpp/poppler-page.h +76 -0
  89. data/vendor/local/include/poppler/cpp/poppler-rectangle.h +84 -0
  90. data/vendor/local/include/poppler/cpp/poppler-toc.h +74 -0
  91. data/vendor/local/include/poppler/cpp/poppler-version.h +39 -0
  92. data/vendor/local/include/poppler/glib/poppler-action.h +316 -0
  93. data/vendor/local/include/poppler/glib/poppler-annot.h +296 -0
  94. data/vendor/local/include/poppler/glib/poppler-attachment.h +87 -0
  95. data/vendor/local/include/poppler/glib/poppler-date.h +30 -0
  96. data/vendor/local/include/poppler/glib/poppler-document.h +299 -0
  97. data/vendor/local/include/poppler/glib/poppler-enums.h +116 -0
  98. data/vendor/local/include/poppler/glib/poppler-features.h +88 -0
  99. data/vendor/local/include/poppler/glib/poppler-form-field.h +111 -0
  100. data/vendor/local/include/poppler/glib/poppler-layer.h +43 -0
  101. data/vendor/local/include/poppler/glib/poppler-media.h +73 -0
  102. data/vendor/local/include/poppler/glib/poppler-movie.h +42 -0
  103. data/vendor/local/include/poppler/glib/poppler-page.h +377 -0
  104. data/vendor/local/include/poppler/glib/poppler-structure-element.h +357 -0
  105. data/vendor/local/include/poppler/glib/poppler.h +250 -0
  106. data/vendor/local/include/sqlite3.h +7494 -0
  107. data/vendor/local/include/sqlite3ext.h +487 -0
  108. data/vendor/local/lib/girepository-1.0/Poppler-0.18.typelib +0 -0
  109. data/vendor/local/lib/libjpeg.a +0 -0
  110. data/vendor/local/lib/libjpeg.dll.a +0 -0
  111. data/vendor/local/lib/libjpeg.la +41 -0
  112. data/vendor/local/lib/libpoppler-cpp.a +0 -0
  113. data/vendor/local/lib/libpoppler-cpp.dll.a +0 -0
  114. data/vendor/local/lib/libpoppler-cpp.la +41 -0
  115. data/vendor/local/lib/libpoppler-glib.a +0 -0
  116. data/vendor/local/lib/libpoppler-glib.dll.a +0 -0
  117. data/vendor/local/lib/libpoppler-glib.la +41 -0
  118. data/vendor/local/lib/libpoppler.a +0 -0
  119. data/vendor/local/lib/libpoppler.dll.a +0 -0
  120. data/vendor/local/lib/libpoppler.la +41 -0
  121. data/vendor/local/lib/libsqlite3.a +0 -0
  122. data/vendor/local/lib/libsqlite3.dll.a +0 -0
  123. data/vendor/local/lib/libsqlite3.la +41 -0
  124. data/vendor/local/lib/pkgconfig/poppler-cairo.pc +9 -0
  125. data/vendor/local/lib/pkgconfig/poppler-cpp.pc +13 -0
  126. data/vendor/local/lib/pkgconfig/poppler-glib.pc +13 -0
  127. data/vendor/local/lib/pkgconfig/poppler-splash.pc +9 -0
  128. data/vendor/local/lib/pkgconfig/poppler.pc +11 -0
  129. data/vendor/local/lib/pkgconfig/sqlite3.pc +13 -0
  130. data/vendor/local/share/gir-1.0/Poppler-0.18.gir +8281 -0
  131. data/vendor/local/share/gtk-doc/html/poppler/PopplerAnnot.html +3221 -0
  132. data/vendor/local/share/gtk-doc/html/poppler/PopplerAttachment.html +267 -0
  133. data/vendor/local/share/gtk-doc/html/poppler/PopplerDocument.html +3328 -0
  134. data/vendor/local/share/gtk-doc/html/poppler/PopplerFormField.html +1403 -0
  135. data/vendor/local/share/gtk-doc/html/poppler/PopplerLayer.html +307 -0
  136. data/vendor/local/share/gtk-doc/html/poppler/PopplerMedia.html +381 -0
  137. data/vendor/local/share/gtk-doc/html/poppler/PopplerMovie.html +197 -0
  138. data/vendor/local/share/gtk-doc/html/poppler/PopplerPage.html +3002 -0
  139. data/vendor/local/share/gtk-doc/html/poppler/PopplerStructureElement.html +3781 -0
  140. data/vendor/local/share/gtk-doc/html/poppler/annotation-glossary.html +63 -0
  141. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-12.html +123 -0
  142. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-14.html +102 -0
  143. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-16.html +180 -0
  144. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-18.html +72 -0
  145. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-20.html +39 -0
  146. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-22.html +64 -0
  147. data/vendor/local/share/gtk-doc/html/poppler/api-index-deprecated.html +39 -0
  148. data/vendor/local/share/gtk-doc/html/poppler/api-index-full.html +1830 -0
  149. data/vendor/local/share/gtk-doc/html/poppler/ch01.html +74 -0
  150. data/vendor/local/share/gtk-doc/html/poppler/home.png +0 -0
  151. data/vendor/local/share/gtk-doc/html/poppler/index.html +85 -0
  152. data/vendor/local/share/gtk-doc/html/poppler/index.sgml +557 -0
  153. data/vendor/local/share/gtk-doc/html/poppler/left-insensitive.png +0 -0
  154. data/vendor/local/share/gtk-doc/html/poppler/left.png +0 -0
  155. data/vendor/local/share/gtk-doc/html/poppler/poppler-PDF-Utility-functions.html +107 -0
  156. data/vendor/local/share/gtk-doc/html/poppler/poppler-PopplerAction.html +796 -0
  157. data/vendor/local/share/gtk-doc/html/poppler/poppler-PopplerColor.html +201 -0
  158. data/vendor/local/share/gtk-doc/html/poppler/poppler-Version-and-Features-Information.html +254 -0
  159. data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler.html +169 -0
  160. data/vendor/local/share/gtk-doc/html/poppler/poppler.devhelp2 +470 -0
  161. data/vendor/local/share/gtk-doc/html/poppler/right-insensitive.png +0 -0
  162. data/vendor/local/share/gtk-doc/html/poppler/right.png +0 -0
  163. data/vendor/local/share/gtk-doc/html/poppler/style.css +476 -0
  164. data/vendor/local/share/gtk-doc/html/poppler/up-insensitive.png +0 -0
  165. data/vendor/local/share/gtk-doc/html/poppler/up.png +0 -0
  166. data/vendor/local/share/license/poppler/AUTHORS +5 -0
  167. data/vendor/local/share/license/poppler/COPYING +339 -0
  168. data/vendor/local/share/man/man1/cjpeg.1 +387 -0
  169. data/vendor/local/share/man/man1/djpeg.1 +252 -0
  170. data/vendor/local/share/man/man1/jpegtran.1 +293 -0
  171. data/vendor/local/share/man/man1/pdfdetach.1 +86 -0
  172. data/vendor/local/share/man/man1/pdffonts.1 +119 -0
  173. data/vendor/local/share/man/man1/pdfimages.1 +260 -0
  174. data/vendor/local/share/man/man1/pdfinfo.1 +152 -0
  175. data/vendor/local/share/man/man1/pdfseparate.1 +49 -0
  176. data/vendor/local/share/man/man1/pdftocairo.1 +295 -0
  177. data/vendor/local/share/man/man1/pdftohtml.1 +107 -0
  178. data/vendor/local/share/man/man1/pdftoppm.1 +170 -0
  179. data/vendor/local/share/man/man1/pdftops.1 +217 -0
  180. data/vendor/local/share/man/man1/pdftotext.1 +137 -0
  181. data/vendor/local/share/man/man1/pdfunite.1 +33 -0
  182. data/vendor/local/share/man/man1/rdjpgcom.1 +63 -0
  183. data/vendor/local/share/man/man1/sqlite3.1 +279 -0
  184. data/vendor/local/share/man/man1/wrjpgcom.1 +103 -0
  185. metadata +254 -0
@@ -0,0 +1,116 @@
1
+
2
+ /* Generated data (by glib-mkenums) */
3
+
4
+
5
+ #ifndef POPPLER_ENUMS_H
6
+ #define POPPLER_ENUMS_H
7
+
8
+ #include <glib-object.h>
9
+
10
+ G_BEGIN_DECLS
11
+
12
+ /* enumerations from "poppler-action.h" */
13
+ GType poppler_action_type_get_type (void) G_GNUC_CONST;
14
+ #define POPPLER_TYPE_ACTION_TYPE (poppler_action_type_get_type ())
15
+ GType poppler_dest_type_get_type (void) G_GNUC_CONST;
16
+ #define POPPLER_TYPE_DEST_TYPE (poppler_dest_type_get_type ())
17
+ GType poppler_action_movie_operation_get_type (void) G_GNUC_CONST;
18
+ #define POPPLER_TYPE_ACTION_MOVIE_OPERATION (poppler_action_movie_operation_get_type ())
19
+ GType poppler_action_layer_action_get_type (void) G_GNUC_CONST;
20
+ #define POPPLER_TYPE_ACTION_LAYER_ACTION (poppler_action_layer_action_get_type ())
21
+
22
+ /* enumerations from "poppler-document.h" */
23
+ GType poppler_page_layout_get_type (void) G_GNUC_CONST;
24
+ #define POPPLER_TYPE_PAGE_LAYOUT (poppler_page_layout_get_type ())
25
+ GType poppler_page_mode_get_type (void) G_GNUC_CONST;
26
+ #define POPPLER_TYPE_PAGE_MODE (poppler_page_mode_get_type ())
27
+ GType poppler_font_type_get_type (void) G_GNUC_CONST;
28
+ #define POPPLER_TYPE_FONT_TYPE (poppler_font_type_get_type ())
29
+ GType poppler_viewer_preferences_get_type (void) G_GNUC_CONST;
30
+ #define POPPLER_TYPE_VIEWER_PREFERENCES (poppler_viewer_preferences_get_type ())
31
+ GType poppler_permissions_get_type (void) G_GNUC_CONST;
32
+ #define POPPLER_TYPE_PERMISSIONS (poppler_permissions_get_type ())
33
+
34
+ /* enumerations from "poppler-form-field.h" */
35
+ GType poppler_form_field_type_get_type (void) G_GNUC_CONST;
36
+ #define POPPLER_TYPE_FORM_FIELD_TYPE (poppler_form_field_type_get_type ())
37
+ GType poppler_form_button_type_get_type (void) G_GNUC_CONST;
38
+ #define POPPLER_TYPE_FORM_BUTTON_TYPE (poppler_form_button_type_get_type ())
39
+ GType poppler_form_text_type_get_type (void) G_GNUC_CONST;
40
+ #define POPPLER_TYPE_FORM_TEXT_TYPE (poppler_form_text_type_get_type ())
41
+ GType poppler_form_choice_type_get_type (void) G_GNUC_CONST;
42
+ #define POPPLER_TYPE_FORM_CHOICE_TYPE (poppler_form_choice_type_get_type ())
43
+
44
+ /* enumerations from "poppler-annot.h" */
45
+ GType poppler_annot_type_get_type (void) G_GNUC_CONST;
46
+ #define POPPLER_TYPE_ANNOT_TYPE (poppler_annot_type_get_type ())
47
+ GType poppler_annot_flag_get_type (void) G_GNUC_CONST;
48
+ #define POPPLER_TYPE_ANNOT_FLAG (poppler_annot_flag_get_type ())
49
+ GType poppler_annot_markup_reply_type_get_type (void) G_GNUC_CONST;
50
+ #define POPPLER_TYPE_ANNOT_MARKUP_REPLY_TYPE (poppler_annot_markup_reply_type_get_type ())
51
+ GType poppler_annot_external_data_type_get_type (void) G_GNUC_CONST;
52
+ #define POPPLER_TYPE_ANNOT_EXTERNAL_DATA_TYPE (poppler_annot_external_data_type_get_type ())
53
+ GType poppler_annot_text_state_get_type (void) G_GNUC_CONST;
54
+ #define POPPLER_TYPE_ANNOT_TEXT_STATE (poppler_annot_text_state_get_type ())
55
+ GType poppler_annot_free_text_quadding_get_type (void) G_GNUC_CONST;
56
+ #define POPPLER_TYPE_ANNOT_FREE_TEXT_QUADDING (poppler_annot_free_text_quadding_get_type ())
57
+
58
+ /* enumerations from "poppler-structure-element.h" */
59
+ GType poppler_structure_element_kind_get_type (void) G_GNUC_CONST;
60
+ #define POPPLER_TYPE_STRUCTURE_ELEMENT_KIND (poppler_structure_element_kind_get_type ())
61
+ GType poppler_structure_get_text_flags_get_type (void) G_GNUC_CONST;
62
+ #define POPPLER_TYPE_STRUCTURE_GET_TEXT_FLAGS (poppler_structure_get_text_flags_get_type ())
63
+ GType poppler_structure_placement_get_type (void) G_GNUC_CONST;
64
+ #define POPPLER_TYPE_STRUCTURE_PLACEMENT (poppler_structure_placement_get_type ())
65
+ GType poppler_structure_writing_mode_get_type (void) G_GNUC_CONST;
66
+ #define POPPLER_TYPE_STRUCTURE_WRITING_MODE (poppler_structure_writing_mode_get_type ())
67
+ GType poppler_structure_border_style_get_type (void) G_GNUC_CONST;
68
+ #define POPPLER_TYPE_STRUCTURE_BORDER_STYLE (poppler_structure_border_style_get_type ())
69
+ GType poppler_structure_text_align_get_type (void) G_GNUC_CONST;
70
+ #define POPPLER_TYPE_STRUCTURE_TEXT_ALIGN (poppler_structure_text_align_get_type ())
71
+ GType poppler_structure_block_align_get_type (void) G_GNUC_CONST;
72
+ #define POPPLER_TYPE_STRUCTURE_BLOCK_ALIGN (poppler_structure_block_align_get_type ())
73
+ GType poppler_structure_inline_align_get_type (void) G_GNUC_CONST;
74
+ #define POPPLER_TYPE_STRUCTURE_INLINE_ALIGN (poppler_structure_inline_align_get_type ())
75
+ GType poppler_structure_text_decoration_get_type (void) G_GNUC_CONST;
76
+ #define POPPLER_TYPE_STRUCTURE_TEXT_DECORATION (poppler_structure_text_decoration_get_type ())
77
+ GType poppler_structure_ruby_align_get_type (void) G_GNUC_CONST;
78
+ #define POPPLER_TYPE_STRUCTURE_RUBY_ALIGN (poppler_structure_ruby_align_get_type ())
79
+ GType poppler_structure_ruby_position_get_type (void) G_GNUC_CONST;
80
+ #define POPPLER_TYPE_STRUCTURE_RUBY_POSITION (poppler_structure_ruby_position_get_type ())
81
+ GType poppler_structure_glyph_orientation_get_type (void) G_GNUC_CONST;
82
+ #define POPPLER_TYPE_STRUCTURE_GLYPH_ORIENTATION (poppler_structure_glyph_orientation_get_type ())
83
+ GType poppler_structure_list_numbering_get_type (void) G_GNUC_CONST;
84
+ #define POPPLER_TYPE_STRUCTURE_LIST_NUMBERING (poppler_structure_list_numbering_get_type ())
85
+ GType poppler_structure_form_role_get_type (void) G_GNUC_CONST;
86
+ #define POPPLER_TYPE_STRUCTURE_FORM_ROLE (poppler_structure_form_role_get_type ())
87
+ GType poppler_structure_form_state_get_type (void) G_GNUC_CONST;
88
+ #define POPPLER_TYPE_STRUCTURE_FORM_STATE (poppler_structure_form_state_get_type ())
89
+ GType poppler_structure_table_scope_get_type (void) G_GNUC_CONST;
90
+ #define POPPLER_TYPE_STRUCTURE_TABLE_SCOPE (poppler_structure_table_scope_get_type ())
91
+
92
+ /* enumerations from "poppler.h" */
93
+ GType poppler_error_get_type (void) G_GNUC_CONST;
94
+ #define POPPLER_TYPE_ERROR (poppler_error_get_type ())
95
+ GType poppler_orientation_get_type (void) G_GNUC_CONST;
96
+ #define POPPLER_TYPE_ORIENTATION (poppler_orientation_get_type ())
97
+ GType poppler_page_transition_type_get_type (void) G_GNUC_CONST;
98
+ #define POPPLER_TYPE_PAGE_TRANSITION_TYPE (poppler_page_transition_type_get_type ())
99
+ GType poppler_page_transition_alignment_get_type (void) G_GNUC_CONST;
100
+ #define POPPLER_TYPE_PAGE_TRANSITION_ALIGNMENT (poppler_page_transition_alignment_get_type ())
101
+ GType poppler_page_transition_direction_get_type (void) G_GNUC_CONST;
102
+ #define POPPLER_TYPE_PAGE_TRANSITION_DIRECTION (poppler_page_transition_direction_get_type ())
103
+ GType poppler_selection_style_get_type (void) G_GNUC_CONST;
104
+ #define POPPLER_TYPE_SELECTION_STYLE (poppler_selection_style_get_type ())
105
+ GType poppler_print_flags_get_type (void) G_GNUC_CONST;
106
+ #define POPPLER_TYPE_PRINT_FLAGS (poppler_print_flags_get_type ())
107
+ GType poppler_find_flags_get_type (void) G_GNUC_CONST;
108
+ #define POPPLER_TYPE_FIND_FLAGS (poppler_find_flags_get_type ())
109
+ GType poppler_backend_get_type (void) G_GNUC_CONST;
110
+ #define POPPLER_TYPE_BACKEND (poppler_backend_get_type ())
111
+ G_END_DECLS
112
+
113
+ #endif /* !POPPLER_ENUMS_H */
114
+
115
+ /* Generated data ends here */
116
+
@@ -0,0 +1,88 @@
1
+ /* poppler-features.h: glib interface to poppler
2
+ * Copyright (C) 2006, Red Hat, Inc.
3
+ *
4
+ * This program is free software; you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation; either version 2, or (at your option)
7
+ * any later version.
8
+ *
9
+ * This program is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with this program; if not, write to the Free Software
16
+ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
17
+ */
18
+
19
+ #ifndef __POPPLER_FEATURES_H__
20
+ #define __POPPLER_FEATURES_H__
21
+
22
+ /**
23
+ * SECTION:poppler-features
24
+ * @short_description: Variables and functions to check the poppler version and features
25
+ * @Title: Version and Features Information
26
+ *
27
+ * Poppler provides version information, and information about features
28
+ * enabled at compile time. This is primarily useful in configure checks
29
+ * for builds that have a configure script, or for allowing code to optionally
30
+ * depend but not require a specific poppler version.
31
+ */
32
+
33
+ /**
34
+ * POPPLER_HAS_CAIRO:
35
+ *
36
+ * Defined if poppler was compiled with cairo support.
37
+ */
38
+ #define POPPLER_HAS_CAIRO 1
39
+
40
+ /**
41
+ * POPPLER_MAJOR_VERSION:
42
+ *
43
+ * The major version number of the poppler header files (e.g. in poppler version
44
+ * 0.1.2 this is 0.)
45
+ *
46
+ * Since: 0.12
47
+ */
48
+ #define POPPLER_MAJOR_VERSION (0)
49
+
50
+ /**
51
+ * POPPLER_MINOR_VERSION:
52
+ *
53
+ * The major version number of the poppler header files (e.g. in poppler version
54
+ * 0.1.2 this is 1.)
55
+ *
56
+ * Since: 0.12
57
+ */
58
+ #define POPPLER_MINOR_VERSION (29)
59
+
60
+ /**
61
+ * POPPLER_MICRO_VERSION:
62
+ *
63
+ * The micro version number of the poppler header files (e.g. in poppler version
64
+ * 0.1.2 this is 2.)
65
+ *
66
+ * Since: 0.12
67
+ */
68
+ #define POPPLER_MICRO_VERSION (0)
69
+
70
+ /**
71
+ * POPPLER_CHECK_VERSION:
72
+ * @major: major version (e.g. 0 for version 0.1.2)
73
+ * @minor: minor version (e.g. 1 for version 0.1.2)
74
+ * @micro: micro version (e.g. 2 for version 0.1.2)
75
+ *
76
+ * Checks the version fo the poppler library
77
+ *
78
+ * Returns: %TRUE if the version of the poppler header files is the same
79
+ * as or newer than the passed-in version
80
+ *
81
+ * Since: 0.12
82
+ */
83
+ #define POPPLER_CHECK_VERSION(major,minor,micro) \
84
+ (POPPLER_MAJOR_VERSION > (major) || \
85
+ (POPPLER_MAJOR_VERSION == (major) && POPPLER_MINOR_VERSION > (minor)) || \
86
+ (POPPLER_MAJOR_VERSION == (major) && POPPLER_MINOR_VERSION == (minor) && POPPLER_MICRO_VERSION >= (micro)))
87
+
88
+ #endif /* __POPPLER_FEATURES_H__ */
@@ -0,0 +1,111 @@
1
+ /* poppler-form-field.h: glib interface to poppler
2
+ *
3
+ * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org>
4
+ *
5
+ * This program is free software; you can redistribute it and/or modify
6
+ * it under the terms of the GNU General Public License as published by
7
+ * the Free Software Foundation; either version 2, or (at your option)
8
+ * any later version.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU General Public License
16
+ * along with this program; if not, write to the Free Software
17
+ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
18
+ */
19
+
20
+ #ifndef __POPPLER_FORM_FIELD_H__
21
+ #define __POPPLER_FORM_FIELD_H__
22
+
23
+ #include <glib-object.h>
24
+ #include "poppler.h"
25
+
26
+ G_BEGIN_DECLS
27
+
28
+ #define POPPLER_TYPE_FORM_FIELD (poppler_form_field_get_type ())
29
+ #define POPPLER_FORM_FIELD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_FORM_FIELD, PopplerFormField))
30
+ #define POPPLER_IS_FORM_FIELD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_FORM_FIELD))
31
+
32
+ typedef enum
33
+ {
34
+ POPPLER_FORM_FIELD_UNKNOWN,
35
+ POPPLER_FORM_FIELD_BUTTON,
36
+ POPPLER_FORM_FIELD_TEXT,
37
+ POPPLER_FORM_FIELD_CHOICE,
38
+ POPPLER_FORM_FIELD_SIGNATURE
39
+ } PopplerFormFieldType;
40
+
41
+ typedef enum
42
+ {
43
+ POPPLER_FORM_BUTTON_PUSH,
44
+ POPPLER_FORM_BUTTON_CHECK,
45
+ POPPLER_FORM_BUTTON_RADIO
46
+ } PopplerFormButtonType;
47
+
48
+ typedef enum
49
+ {
50
+ POPPLER_FORM_TEXT_NORMAL,
51
+ POPPLER_FORM_TEXT_MULTILINE,
52
+ POPPLER_FORM_TEXT_FILE_SELECT
53
+ } PopplerFormTextType;
54
+
55
+ typedef enum
56
+ {
57
+ POPPLER_FORM_CHOICE_COMBO,
58
+ POPPLER_FORM_CHOICE_LIST
59
+ } PopplerFormChoiceType;
60
+
61
+ GType poppler_form_field_get_type (void) G_GNUC_CONST;
62
+
63
+ PopplerFormFieldType poppler_form_field_get_field_type (PopplerFormField *field);
64
+ gint poppler_form_field_get_id (PopplerFormField *field);
65
+ gdouble poppler_form_field_get_font_size (PopplerFormField *field);
66
+ gboolean poppler_form_field_is_read_only (PopplerFormField *field);
67
+ gchar *poppler_form_field_get_partial_name (PopplerFormField *field);
68
+ gchar *poppler_form_field_get_mapping_name (PopplerFormField *field);
69
+ gchar *poppler_form_field_get_name (PopplerFormField *field);
70
+ PopplerAction *poppler_form_field_get_action (PopplerFormField *field);
71
+
72
+ /* Button Field */
73
+ PopplerFormButtonType poppler_form_field_button_get_button_type (PopplerFormField *field);
74
+ gboolean poppler_form_field_button_get_state (PopplerFormField *field);
75
+ void poppler_form_field_button_set_state (PopplerFormField *field,
76
+ gboolean state);
77
+
78
+ /* Text Field */
79
+ PopplerFormTextType poppler_form_field_text_get_text_type (PopplerFormField *field);
80
+ gchar *poppler_form_field_text_get_text (PopplerFormField *field);
81
+ void poppler_form_field_text_set_text (PopplerFormField *field,
82
+ const gchar *text);
83
+ gint poppler_form_field_text_get_max_len (PopplerFormField *field);
84
+ gboolean poppler_form_field_text_do_spell_check (PopplerFormField *field);
85
+ gboolean poppler_form_field_text_do_scroll (PopplerFormField *field);
86
+ gboolean poppler_form_field_text_is_rich_text (PopplerFormField *field);
87
+ gboolean poppler_form_field_text_is_password (PopplerFormField *field);
88
+
89
+ /* Choice Field */
90
+ PopplerFormChoiceType poppler_form_field_choice_get_choice_type (PopplerFormField *field);
91
+ gboolean poppler_form_field_choice_is_editable (PopplerFormField *field);
92
+ gboolean poppler_form_field_choice_can_select_multiple (PopplerFormField *field);
93
+ gboolean poppler_form_field_choice_do_spell_check (PopplerFormField *field);
94
+ gboolean poppler_form_field_choice_commit_on_change (PopplerFormField *field);
95
+ gint poppler_form_field_choice_get_n_items (PopplerFormField *field);
96
+ gchar *poppler_form_field_choice_get_item (PopplerFormField *field,
97
+ gint index);
98
+ gboolean poppler_form_field_choice_is_item_selected (PopplerFormField *field,
99
+ gint index);
100
+ void poppler_form_field_choice_select_item (PopplerFormField *field,
101
+ gint index);
102
+ void poppler_form_field_choice_unselect_all (PopplerFormField *field);
103
+ void poppler_form_field_choice_toggle_item (PopplerFormField *field,
104
+ gint index);
105
+ void poppler_form_field_choice_set_text (PopplerFormField *field,
106
+ const gchar *text);
107
+ gchar *poppler_form_field_choice_get_text (PopplerFormField *field);
108
+
109
+ G_END_DECLS
110
+
111
+ #endif /* __POPPLER_FORM_FIELD_H__ */
@@ -0,0 +1,43 @@
1
+ /* poppler-layer.h: glib interface to poppler
2
+ *
3
+ * Copyright (C) 2008 Carlos Garcia Campos <carlosgc@gnome.org>
4
+ *
5
+ * This program is free software; you can redistribute it and/or modify
6
+ * it under the terms of the GNU General Public License as published by
7
+ * the Free Software Foundation; either version 2, or (at your option)
8
+ * any later version.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU General Public License
16
+ * along with this program; if not, write to the Free Software
17
+ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
18
+ */
19
+
20
+ #ifndef __POPPLER_LAYER_H__
21
+ #define __POPPLER_LAYER_H__
22
+
23
+ #include <glib-object.h>
24
+ #include "poppler.h"
25
+
26
+ G_BEGIN_DECLS
27
+
28
+ #define POPPLER_TYPE_LAYER (poppler_layer_get_type ())
29
+ #define POPPLER_LAYER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_LAYER, PopplerLayer))
30
+ #define POPPLER_IS_LAYER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_LAYER))
31
+
32
+ GType poppler_layer_get_type (void) G_GNUC_CONST;
33
+
34
+ const gchar *poppler_layer_get_title (PopplerLayer *layer);
35
+ gboolean poppler_layer_is_visible (PopplerLayer *layer);
36
+ void poppler_layer_show (PopplerLayer *layer);
37
+ void poppler_layer_hide (PopplerLayer *layer);
38
+ gboolean poppler_layer_is_parent (PopplerLayer *layer);
39
+ gint poppler_layer_get_radio_button_group_id (PopplerLayer *layer);
40
+
41
+ G_END_DECLS
42
+
43
+ #endif /* __POPPLER_LAYER_H__ */
@@ -0,0 +1,73 @@
1
+ /* poppler-media.h: glib interface to MediaRendition
2
+ *
3
+ * Copyright (C) 2010 Carlos Garcia Campos <carlosgc@gnome.org>
4
+ *
5
+ * This program is free software; you can redistribute it and/or modify
6
+ * it under the terms of the GNU General Public License as published by
7
+ * the Free Software Foundation; either version 2, or (at your option)
8
+ * any later version.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU General Public License
16
+ * along with this program; if not, write to the Free Software
17
+ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
18
+ */
19
+
20
+ #ifndef __POPPLER_MEDIA_H__
21
+ #define __POPPLER_MEDIA_H__
22
+
23
+ #include <glib-object.h>
24
+ #include "poppler.h"
25
+
26
+ G_BEGIN_DECLS
27
+
28
+ #define POPPLER_TYPE_MEDIA (poppler_media_get_type ())
29
+ #define POPPLER_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_MEDIA, PopplerMedia))
30
+ #define POPPLER_IS_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_MEDIA))
31
+
32
+ /* FIXME: this should be generic (PopplerSaveToCallbackFunc) */
33
+
34
+ /**
35
+ * PopplerMediaSaveFunc:
36
+ * @buf: (array length=count) (element-type guint8): buffer containing
37
+ * bytes to be written.
38
+ * @count: number of bytes in @buf.
39
+ * @data: (closure): user data passed to poppler_media_save_to_callback()
40
+ * @error: GError to set on error, or %NULL
41
+ *
42
+ * Specifies the type of the function passed to
43
+ * poppler_media_save_to_callback(). It is called once for each block of
44
+ * bytes that is "written" by poppler_media_save_to_callback(). If
45
+ * successful it should return %TRUE. If an error occurs it should set
46
+ * @error and return %FALSE, in which case poppler_media_save_to_callback()
47
+ * will fail with the same error.
48
+ *
49
+ * Returns: %TRUE if successful, %FALSE (with @error set) if failed.
50
+ *
51
+ * Since: 0.14
52
+ */
53
+ typedef gboolean (*PopplerMediaSaveFunc) (const gchar *buf,
54
+ gsize count,
55
+ gpointer data,
56
+ GError **error);
57
+
58
+ GType poppler_media_get_type (void) G_GNUC_CONST;
59
+ gboolean poppler_media_is_embedded (PopplerMedia *poppler_media);
60
+ const gchar *poppler_media_get_filename (PopplerMedia *poppler_media);
61
+ const gchar *poppler_media_get_mime_type (PopplerMedia *poppler_media);
62
+ gboolean poppler_media_save (PopplerMedia *poppler_media,
63
+ const char *filename,
64
+ GError **error);
65
+ gboolean poppler_media_save_to_callback (PopplerMedia *poppler_media,
66
+ PopplerMediaSaveFunc save_func,
67
+ gpointer user_data,
68
+ GError **error);
69
+
70
+ G_END_DECLS
71
+
72
+ #endif /* __POPPLER_MEDIA_H__ */
73
+
@@ -0,0 +1,42 @@
1
+ /* poppler-movie.h: glib interface to Movie
2
+ *
3
+ * Copyright (C) 2010 Carlos Garcia Campos <carlosgc@gnome.org>
4
+ * Copyright (C) 2008 Hugo Mercier <hmercier31[@]gmail.com>
5
+ *
6
+ * This program is free software; you can redistribute it and/or modify
7
+ * it under the terms of the GNU General Public License as published by
8
+ * the Free Software Foundation; either version 2, or (at your option)
9
+ * any later version.
10
+ *
11
+ * This program is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ * GNU General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU General Public License
17
+ * along with this program; if not, write to the Free Software
18
+ * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
19
+ */
20
+
21
+ #ifndef __POPPLER_MOVIE_H__
22
+ #define __POPPLER_MOVIE_H__
23
+
24
+ #include <glib-object.h>
25
+ #include "poppler.h"
26
+
27
+ G_BEGIN_DECLS
28
+
29
+ #define POPPLER_TYPE_MOVIE (poppler_movie_get_type ())
30
+ #define POPPLER_MOVIE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_MOVIE, PopplerMovie))
31
+ #define POPPLER_IS_MOVIE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_MOVIE))
32
+
33
+
34
+ GType poppler_movie_get_type (void) G_GNUC_CONST;
35
+ const gchar *poppler_movie_get_filename (PopplerMovie *poppler_movie);
36
+ gboolean poppler_movie_need_poster (PopplerMovie *poppler_movie);
37
+ gboolean poppler_movie_show_controls (PopplerMovie *poppler_movie);
38
+
39
+ G_END_DECLS
40
+
41
+ #endif /* __POPPLER_MOVIE_H__ */
42
+