poppler 2.2.0-x86-mingw32 → 2.2.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +5 -5
  3. data/ext/poppler/extconf.rb +1 -1
  4. data/lib/2.0/poppler.so +0 -0
  5. data/test/test_annotation.rb +3 -1
  6. data/test/test_page.rb +0 -18
  7. data/vendor/local/bin/cjpeg.exe +0 -0
  8. data/vendor/local/bin/djpeg.exe +0 -0
  9. data/vendor/local/bin/jpegtran.exe +0 -0
  10. data/vendor/local/bin/libjpeg-9.dll +0 -0
  11. data/vendor/local/bin/{libpoppler-44.dll → libpoppler-46.dll} +0 -0
  12. data/vendor/local/bin/libpoppler-cpp-0.dll +0 -0
  13. data/vendor/local/bin/libpoppler-glib-8.dll +0 -0
  14. data/vendor/local/bin/libsqlite3-0.dll +0 -0
  15. data/vendor/local/bin/pdfdetach.exe +0 -0
  16. data/vendor/local/bin/pdffonts.exe +0 -0
  17. data/vendor/local/bin/pdfimages.exe +0 -0
  18. data/vendor/local/bin/pdfinfo.exe +0 -0
  19. data/vendor/local/bin/pdfseparate.exe +0 -0
  20. data/vendor/local/bin/pdftocairo.exe +0 -0
  21. data/vendor/local/bin/pdftohtml.exe +0 -0
  22. data/vendor/local/bin/pdftoppm.exe +0 -0
  23. data/vendor/local/bin/pdftops.exe +0 -0
  24. data/vendor/local/bin/pdftotext.exe +0 -0
  25. data/vendor/local/bin/pdfunite.exe +0 -0
  26. data/vendor/local/bin/rdjpgcom.exe +0 -0
  27. data/vendor/local/bin/sqlite3.exe +0 -0
  28. data/vendor/local/bin/wrjpgcom.exe +0 -0
  29. data/vendor/local/include/jconfig.h +7 -1
  30. data/vendor/local/include/jmorecfg.h +68 -12
  31. data/vendor/local/include/jpeglib.h +19 -12
  32. data/vendor/local/include/poppler/cpp/poppler-document.h +104 -0
  33. data/vendor/local/include/poppler/cpp/poppler-embedded-file.h +55 -0
  34. data/vendor/local/include/poppler/cpp/poppler-font.h +91 -0
  35. data/vendor/local/include/poppler/cpp/poppler-global.h +111 -0
  36. data/vendor/local/include/poppler/cpp/poppler-image.h +71 -0
  37. data/vendor/local/include/poppler/cpp/poppler-page-renderer.h +66 -0
  38. data/vendor/local/include/poppler/cpp/poppler-page-transition.h +82 -0
  39. data/vendor/local/include/poppler/cpp/poppler-page.h +76 -0
  40. data/vendor/local/include/poppler/cpp/poppler-rectangle.h +84 -0
  41. data/vendor/local/include/poppler/cpp/poppler-toc.h +74 -0
  42. data/vendor/local/include/poppler/cpp/poppler-version.h +39 -0
  43. data/vendor/local/include/poppler/glib/poppler-annot.h +64 -0
  44. data/vendor/local/include/poppler/glib/poppler-enums.h +34 -0
  45. data/vendor/local/include/poppler/glib/poppler-features.h +1 -1
  46. data/vendor/local/include/poppler/glib/poppler-media.h +1 -1
  47. data/vendor/local/include/poppler/glib/poppler-page.h +61 -0
  48. data/vendor/local/include/poppler/glib/poppler-structure-element.h +357 -0
  49. data/vendor/local/include/poppler/glib/poppler.h +11 -1
  50. data/vendor/local/include/sqlite3.h +245 -89
  51. data/vendor/local/lib/girepository-1.0/Poppler-0.18.typelib +0 -0
  52. data/vendor/local/lib/libjpeg.a +0 -0
  53. data/vendor/local/lib/libjpeg.dll.a +0 -0
  54. data/vendor/local/lib/libjpeg.la +2 -2
  55. data/vendor/local/lib/libpoppler-cpp.a +0 -0
  56. data/vendor/local/lib/libpoppler-cpp.dll.a +0 -0
  57. data/vendor/local/lib/libpoppler-cpp.la +41 -0
  58. data/vendor/local/lib/libpoppler-glib.a +0 -0
  59. data/vendor/local/lib/libpoppler-glib.dll.a +0 -0
  60. data/vendor/local/lib/libpoppler-glib.la +2 -2
  61. data/vendor/local/lib/libpoppler.a +0 -0
  62. data/vendor/local/lib/libpoppler.dll.a +0 -0
  63. data/vendor/local/lib/libpoppler.la +4 -4
  64. data/vendor/local/lib/libsqlite3.a +0 -0
  65. data/vendor/local/lib/libsqlite3.dll.a +0 -0
  66. data/vendor/local/lib/libsqlite3.la +1 -1
  67. data/vendor/local/lib/pkgconfig/poppler-cairo.pc +2 -2
  68. data/vendor/local/lib/pkgconfig/poppler-cpp.pc +13 -0
  69. data/vendor/local/lib/pkgconfig/poppler-glib.pc +2 -2
  70. data/vendor/local/lib/pkgconfig/poppler-splash.pc +2 -2
  71. data/vendor/local/lib/pkgconfig/poppler.pc +1 -1
  72. data/vendor/local/lib/pkgconfig/sqlite3.pc +2 -2
  73. data/vendor/local/share/gir-1.0/Poppler-0.18.gir +2993 -169
  74. data/vendor/local/share/gtk-doc/html/poppler/PopplerAnnot.html +2674 -1137
  75. data/vendor/local/share/gtk-doc/html/poppler/PopplerAttachment.html +186 -133
  76. data/vendor/local/share/gtk-doc/html/poppler/PopplerDocument.html +2523 -1782
  77. data/vendor/local/share/gtk-doc/html/poppler/PopplerFormField.html +1071 -738
  78. data/vendor/local/share/gtk-doc/html/poppler/PopplerLayer.html +225 -146
  79. data/vendor/local/share/gtk-doc/html/poppler/PopplerMedia.html +276 -201
  80. data/vendor/local/share/gtk-doc/html/poppler/PopplerMovie.html +142 -101
  81. data/vendor/local/share/gtk-doc/html/poppler/PopplerPage.html +2191 -1421
  82. data/vendor/local/share/gtk-doc/html/poppler/PopplerStructureElement.html +3781 -0
  83. data/vendor/local/share/gtk-doc/html/poppler/annotation-glossary.html +30 -44
  84. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-12.html +34 -39
  85. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-14.html +27 -32
  86. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-16.html +50 -55
  87. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-18.html +23 -28
  88. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-20.html +12 -15
  89. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-22.html +18 -23
  90. data/vendor/local/share/gtk-doc/html/poppler/api-index-deprecated.html +12 -15
  91. data/vendor/local/share/gtk-doc/html/poppler/api-index-full.html +762 -280
  92. data/vendor/local/share/gtk-doc/html/poppler/ch01.html +12 -9
  93. data/vendor/local/share/gtk-doc/html/poppler/home.png +0 -0
  94. data/vendor/local/share/gtk-doc/html/poppler/index.html +7 -4
  95. data/vendor/local/share/gtk-doc/html/poppler/index.sgml +258 -269
  96. data/vendor/local/share/gtk-doc/html/poppler/left-insensitive.png +0 -0
  97. data/vendor/local/share/gtk-doc/html/poppler/left.png +0 -0
  98. data/vendor/local/share/gtk-doc/html/poppler/poppler-PopplerAction.html +454 -320
  99. data/vendor/local/share/gtk-doc/html/poppler/poppler-Version-and-Features-Information.html +102 -76
  100. data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler.html +367 -278
  101. data/vendor/local/share/gtk-doc/html/poppler/poppler.devhelp2 +356 -409
  102. data/vendor/local/share/gtk-doc/html/poppler/right-insensitive.png +0 -0
  103. data/vendor/local/share/gtk-doc/html/poppler/right.png +0 -0
  104. data/vendor/local/share/gtk-doc/html/poppler/style.css +314 -104
  105. data/vendor/local/share/gtk-doc/html/poppler/up-insensitive.png +0 -0
  106. data/vendor/local/share/gtk-doc/html/poppler/up.png +0 -0
  107. data/vendor/local/share/man/man1/cjpeg.1 +23 -2
  108. data/vendor/local/share/man/man1/djpeg.1 +2 -2
  109. data/vendor/local/share/man/man1/jpegtran.1 +12 -4
  110. data/vendor/local/share/man/man1/pdfimages.1 +78 -7
  111. data/vendor/local/share/man/man1/pdfinfo.1 +6 -0
  112. data/vendor/local/share/man/man1/pdftocairo.1 +9 -17
  113. data/vendor/local/share/man/man1/pdftohtml.1 +1 -1
  114. data/vendor/local/share/man/man1/pdftoppm.1 +12 -0
  115. data/vendor/local/share/man/man1/pdftops.1 +10 -20
  116. data/vendor/local/share/man/man1/rdjpgcom.1 +1 -1
  117. data/vendor/local/share/man/man1/sqlite3.1 +72 -22
  118. metadata +34 -15
  119. data/lib/1.9/poppler.so +0 -0
  120. data/lib/2.1/poppler.so +0 -0
@@ -0,0 +1,76 @@
1
+ /*
2
+ * Copyright (C) 2009-2010, Pino Toscano <pino@kde.org>
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_PAGE_H
20
+ #define POPPLER_PAGE_H
21
+
22
+ #include "poppler-global.h"
23
+ #include "poppler-rectangle.h"
24
+
25
+ namespace poppler
26
+ {
27
+
28
+ class document;
29
+ class document_private;
30
+ class page_private;
31
+ class page_transition;
32
+
33
+ class POPPLER_CPP_EXPORT page : public poppler::noncopyable
34
+ {
35
+ public:
36
+ enum orientation_enum {
37
+ landscape,
38
+ portrait,
39
+ seascape,
40
+ upside_down
41
+ };
42
+ enum search_direction_enum {
43
+ search_from_top,
44
+ search_next_result,
45
+ search_previous_result
46
+ };
47
+ enum text_layout_enum {
48
+ physical_layout,
49
+ raw_order_layout
50
+ };
51
+
52
+ ~page();
53
+
54
+ orientation_enum orientation() const;
55
+ double duration() const;
56
+ rectf page_rect(page_box_enum box = crop_box) const;
57
+ ustring label() const;
58
+
59
+ page_transition* transition() const;
60
+
61
+ bool search(const ustring &text, rectf &r, search_direction_enum direction,
62
+ case_sensitivity_enum case_sensitivity, rotation_enum rotation = rotate_0) const;
63
+ ustring text(const rectf &rect = rectf()) const;
64
+ ustring text(const rectf &rect, text_layout_enum layout_mode) const;
65
+
66
+ private:
67
+ page(document_private *doc, int index);
68
+
69
+ page_private *d;
70
+ friend class page_private;
71
+ friend class document;
72
+ };
73
+
74
+ }
75
+
76
+ #endif
@@ -0,0 +1,84 @@
1
+ /*
2
+ * Copyright (C) 2009-2010, Pino Toscano <pino@kde.org>
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_RECTANGLE_H
20
+ #define POPPLER_RECTANGLE_H
21
+
22
+ #include "poppler-global.h"
23
+
24
+ namespace poppler
25
+ {
26
+
27
+ template <typename T> class rectangle
28
+ {
29
+ public:
30
+ rectangle()
31
+ : x1(), y1(), x2(), y2()
32
+ {}
33
+ rectangle(T _x, T _y, T w, T h)
34
+ : x1(_x), y1(_y), x2(x1 + w), y2(y1 + h)
35
+ {}
36
+ ~rectangle()
37
+ {}
38
+
39
+ bool is_empty() const
40
+ { return (x1 == x2) && (y1 == y2); }
41
+
42
+ T x() const
43
+ { return x1; }
44
+
45
+ T y() const
46
+ { return y1; }
47
+
48
+ T width() const
49
+ { return x2 - x1; }
50
+
51
+ T height() const
52
+ { return y2 - y1; }
53
+
54
+ T left() const
55
+ { return x1; }
56
+ T top() const
57
+ { return y1; }
58
+ T right() const
59
+ { return x2; }
60
+ T bottom() const
61
+ { return y2; }
62
+
63
+ void set_left(T value)
64
+ { x1 = value; }
65
+ void set_top(T value)
66
+ { y1 = value; }
67
+ void set_right(T value)
68
+ { x2 = value; }
69
+ void set_bottom(T value)
70
+ { y2 = value; }
71
+
72
+ private:
73
+ T x1, y1, x2, y2;
74
+ };
75
+
76
+ typedef rectangle<int> rect;
77
+ typedef rectangle<double> rectf;
78
+
79
+ POPPLER_CPP_EXPORT std::ostream& operator<<(std::ostream& stream, const rect &r);
80
+ POPPLER_CPP_EXPORT std::ostream& operator<<(std::ostream& stream, const rectf &r);
81
+
82
+ }
83
+
84
+ #endif
@@ -0,0 +1,74 @@
1
+ /*
2
+ * Copyright (C) 2009, Pino Toscano <pino@kde.org>
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_TOC_H
20
+ #define POPPLER_TOC_H
21
+
22
+ #include "poppler-global.h"
23
+
24
+ #include <vector>
25
+
26
+ namespace poppler
27
+ {
28
+
29
+ class toc_private;
30
+ class toc_item;
31
+ class toc_item_private;
32
+
33
+ class POPPLER_CPP_EXPORT toc : public poppler::noncopyable
34
+ {
35
+ public:
36
+ ~toc();
37
+
38
+ toc_item* root() const;
39
+
40
+ private:
41
+ toc();
42
+
43
+ toc_private *d;
44
+
45
+ friend class toc_private;
46
+ };
47
+
48
+
49
+ class POPPLER_CPP_EXPORT toc_item : public poppler::noncopyable
50
+ {
51
+ public:
52
+ typedef std::vector<toc_item *>::const_iterator iterator;
53
+
54
+ ~toc_item();
55
+
56
+ ustring title() const;
57
+ bool is_open() const;
58
+
59
+ std::vector<toc_item *> children() const;
60
+ iterator children_begin() const;
61
+ iterator children_end() const;
62
+
63
+ private:
64
+ toc_item();
65
+
66
+ toc_item_private *d;
67
+ friend class toc;
68
+ friend class toc_private;
69
+ friend class toc_item_private;
70
+ };
71
+
72
+ }
73
+
74
+ #endif
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Copyright (C) 2009, Pino Toscano <pino@kde.org>
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_VERSION_H
20
+ #define POPPLER_VERSION_H
21
+
22
+ #include "poppler-global.h"
23
+
24
+ #define POPPLER_VERSION "0.26.5"
25
+ #define POPPLER_VERSION_MAJOR 0
26
+ #define POPPLER_VERSION_MINOR 26
27
+ #define POPPLER_VERSION_MICRO 5
28
+
29
+ namespace poppler
30
+ {
31
+
32
+ POPPLER_CPP_EXPORT std::string version_string();
33
+ POPPLER_CPP_EXPORT unsigned int version_major();
34
+ POPPLER_CPP_EXPORT unsigned int version_minor();
35
+ POPPLER_CPP_EXPORT unsigned int version_micro();
36
+
37
+ }
38
+
39
+ #endif
@@ -38,6 +38,11 @@ G_BEGIN_DECLS
38
38
  #define POPPLER_ANNOT_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_ANNOT_TEXT, PopplerAnnotText))
39
39
  #define POPPLER_IS_ANNOT_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_ANNOT_TEXT))
40
40
 
41
+ #define POPPLER_TYPE_ANNOT_TEXT_MARKUP (poppler_annot_text_markup_get_type ())
42
+ #define POPPLER_ANNOT_TEXT_MARKUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_ANNOT_TEXT_MARKUP, PopplerAnnotTextMarkup))
43
+ #define POPPLER_IS_ANNOT_TEXT_MARKUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_ANNOT_TEXT_MARKUP))
44
+
45
+
41
46
  #define POPPLER_TYPE_ANNOT_FREE_TEXT (poppler_annot_free_text_get_type ())
42
47
  #define POPPLER_ANNOT_FREE_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_ANNOT_FREE_TEXT, PopplerAnnotFreeText))
43
48
  #define POPPLER_IS_ANNOT_FREE_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_ANNOT_FREE_TEXT))
@@ -54,8 +59,19 @@ G_BEGIN_DECLS
54
59
  #define POPPLER_ANNOT_SCREEN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_ANNOT_SCREEN, PopplerAnnotScreen))
55
60
  #define POPPLER_IS_ANNOT_SCREEN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_ANNOT_SCREEN))
56
61
 
62
+ #define POPPLER_TYPE_ANNOT_LINE (poppler_annot_line_get_type ())
63
+ #define POPPLER_ANNOT_LINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_ANNOT_LINE, PopplerAnnotLine))
64
+ #define POPPLER_IS_ANNOT_LINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_ANNOT_LINE))
65
+
57
66
  #define POPPLER_TYPE_ANNOT_CALLOUT_LINE (poppler_annot_callout_line_get_type ())
58
67
 
68
+ #define POPPLER_TYPE_ANNOT_CIRCLE (poppler_annot_circle_get_type ())
69
+ #define POPPLER_ANNOT_CIRCLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_ANNOT_CIRCLE, PopplerAnnotCircle))
70
+ #define POPPLER_IS_ANNOT_CIRCLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_ANNOT_CIRCLE))
71
+
72
+ #define POPPLER_TYPE_ANNOT_SQUARE (poppler_annot_square_get_type ())
73
+ #define POPPLER_ANNOT_SQUARE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_ANNOT_SQUARE, PopplerAnnotSquare))
74
+ #define POPPLER_IS_ANNOT_SQUARE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_ANNOT_SQUARE))
59
75
 
60
76
  typedef enum
61
77
  {
@@ -168,6 +184,10 @@ PopplerColor *poppler_annot_get_color (
168
184
  void poppler_annot_set_color (PopplerAnnot *poppler_annot,
169
185
  PopplerColor *poppler_color);
170
186
  gint poppler_annot_get_page_index (PopplerAnnot *poppler_annot);
187
+ void poppler_annot_get_rectangle (PopplerAnnot *poppler_annot,
188
+ PopplerRectangle *poppler_rect);
189
+ void poppler_annot_set_rectangle (PopplerAnnot *poppler_annot,
190
+ PopplerRectangle *poppler_rect);
171
191
 
172
192
  /* PopplerAnnotMarkup */
173
193
  GType poppler_annot_markup_get_type (void) G_GNUC_CONST;
@@ -202,6 +222,24 @@ void poppler_annot_text_set_icon (
202
222
  const gchar *icon);
203
223
  PopplerAnnotTextState poppler_annot_text_get_state (PopplerAnnotText *poppler_annot);
204
224
 
225
+ /* PopplerAnnotTextMarkup */
226
+ GType poppler_annot_text_markup_get_type (void) G_GNUC_CONST;
227
+ PopplerAnnot *poppler_annot_text_markup_new_highlight (PopplerDocument *doc,
228
+ PopplerRectangle *rect,
229
+ GArray *quadrilaterals);
230
+ PopplerAnnot *poppler_annot_text_markup_new_squiggly (PopplerDocument *doc,
231
+ PopplerRectangle *rect,
232
+ GArray *quadrilaterals);
233
+ PopplerAnnot *poppler_annot_text_markup_new_strikeout (PopplerDocument *doc,
234
+ PopplerRectangle *rect,
235
+ GArray *quadrilaterals);
236
+ PopplerAnnot *poppler_annot_text_markup_new_underline (PopplerDocument *doc,
237
+ PopplerRectangle *rect,
238
+ GArray *quadrilaterals);
239
+ void poppler_annot_text_markup_set_quadrilaterals (PopplerAnnotTextMarkup *poppler_annot,
240
+ GArray *quadrilaterals);
241
+ GArray *poppler_annot_text_markup_get_quadrilaterals (PopplerAnnotTextMarkup *poppler_annot);
242
+
205
243
  /* PopplerAnnotFreeText */
206
244
  GType poppler_annot_free_text_get_type (void) G_GNUC_CONST;
207
245
  PopplerAnnotFreeTextQuadding poppler_annot_free_text_get_quadding (PopplerAnnotFreeText *poppler_annot);
@@ -221,12 +259,38 @@ PopplerMovie *poppler_annot_movie_get_movie (
221
259
  GType poppler_annot_screen_get_type (void) G_GNUC_CONST;
222
260
  PopplerAction *poppler_annot_screen_get_action (PopplerAnnotScreen *poppler_annot);
223
261
 
262
+ /* PopplerAnnotLine */
263
+ GType poppler_annot_line_get_type (void) G_GNUC_CONST;
264
+ PopplerAnnot *poppler_annot_line_new (PopplerDocument *doc,
265
+ PopplerRectangle *rect,
266
+ PopplerPoint *start,
267
+ PopplerPoint *end);
268
+ void poppler_annot_line_set_vertices (PopplerAnnotLine *poppler_annot,
269
+ PopplerPoint *start,
270
+ PopplerPoint *end);
271
+
224
272
  /* PopplerAnnotCalloutLine */
225
273
  GType poppler_annot_callout_line_get_type (void) G_GNUC_CONST;
226
274
  PopplerAnnotCalloutLine *poppler_annot_callout_line_new (void);
227
275
  PopplerAnnotCalloutLine *poppler_annot_callout_line_copy (PopplerAnnotCalloutLine *callout);
228
276
  void poppler_annot_callout_line_free (PopplerAnnotCalloutLine *callout);
229
277
 
278
+ /* PopplerAnnotCircle */
279
+ GType poppler_annot_circle_get_type (void) G_GNUC_CONST;
280
+ PopplerAnnot *poppler_annot_circle_new (PopplerDocument *doc,
281
+ PopplerRectangle *rect);
282
+ void poppler_annot_circle_set_interior_color (PopplerAnnotCircle *poppler_annot,
283
+ PopplerColor *poppler_color);
284
+ PopplerColor *poppler_annot_circle_get_interior_color (PopplerAnnotCircle *poppler_annot);
285
+
286
+ /* PopplerAnnotGeometry */
287
+ GType poppler_annot_square_get_type (void) G_GNUC_CONST;
288
+ PopplerAnnot *poppler_annot_square_new (PopplerDocument *doc,
289
+ PopplerRectangle *rect);
290
+ void poppler_annot_square_set_interior_color (PopplerAnnotSquare *poppler_annot,
291
+ PopplerColor *poppler_color);
292
+ PopplerColor *poppler_annot_square_get_interior_color (PopplerAnnotSquare *poppler_annot);
293
+
230
294
  G_END_DECLS
231
295
 
232
296
  #endif /* __POPPLER_ANNOT_H__ */
@@ -55,6 +55,40 @@ GType poppler_annot_text_state_get_type (void) G_GNUC_CONST;
55
55
  GType poppler_annot_free_text_quadding_get_type (void) G_GNUC_CONST;
56
56
  #define POPPLER_TYPE_ANNOT_FREE_TEXT_QUADDING (poppler_annot_free_text_quadding_get_type ())
57
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
+
58
92
  /* enumerations from "poppler.h" */
59
93
  GType poppler_error_get_type (void) G_GNUC_CONST;
60
94
  #define POPPLER_TYPE_ERROR (poppler_error_get_type ())
@@ -55,7 +55,7 @@
55
55
  *
56
56
  * Since: 0.12
57
57
  */
58
- #define POPPLER_MINOR_VERSION (24)
58
+ #define POPPLER_MINOR_VERSION (26)
59
59
 
60
60
  /**
61
61
  * POPPLER_MICRO_VERSION:
@@ -29,7 +29,7 @@ G_BEGIN_DECLS
29
29
  #define POPPLER_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_MEDIA, PopplerMedia))
30
30
  #define POPPLER_IS_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_MEDIA))
31
31
 
32
- // FIXME: this should be generic (PopplerSaveToCallbackFunc)
32
+ /* FIXME: this should be generic (PopplerSaveToCallbackFunc) */
33
33
 
34
34
  /**
35
35
  * PopplerMediaSaveFunc:
@@ -68,6 +68,8 @@ GList *poppler_page_find_text (PopplerPage *page,
68
68
  void poppler_page_render_to_ps (PopplerPage *page,
69
69
  PopplerPSFile *ps_file);
70
70
  char *poppler_page_get_text (PopplerPage *page);
71
+ char *poppler_page_get_text_for_area (PopplerPage *page,
72
+ PopplerRectangle *area);
71
73
  char *poppler_page_get_selected_text (PopplerPage *page,
72
74
  PopplerSelectionStyle style,
73
75
  PopplerRectangle *selection);
@@ -99,8 +101,14 @@ void poppler_page_get_crop_box (PopplerPage *page,
99
101
  gboolean poppler_page_get_text_layout (PopplerPage *page,
100
102
  PopplerRectangle **rectangles,
101
103
  guint *n_rectangles);
104
+ gboolean poppler_page_get_text_layout_for_area (PopplerPage *page,
105
+ PopplerRectangle *area,
106
+ PopplerRectangle **rectangles,
107
+ guint *n_rectangles);
102
108
  GList *poppler_page_get_text_attributes (PopplerPage *page);
103
109
  void poppler_page_free_text_attributes (GList *list);
110
+ GList * poppler_page_get_text_attributes_for_area (PopplerPage *page,
111
+ PopplerRectangle *area);
104
112
 
105
113
  /* A rectangle on a page, with coordinates in PDF points. */
106
114
  #define POPPLER_TYPE_RECTANGLE (poppler_rectangle_get_type ())
@@ -127,6 +135,59 @@ PopplerRectangle *poppler_rectangle_new (void);
127
135
  PopplerRectangle *poppler_rectangle_copy (PopplerRectangle *rectangle);
128
136
  void poppler_rectangle_free (PopplerRectangle *rectangle);
129
137
 
138
+ /* A point on a page, with coordinates in PDF points. */
139
+ #define POPPLER_TYPE_POINT (poppler_point_get_type ())
140
+ /**
141
+ * PopplerPoint:
142
+ * @x: x coordinate
143
+ * @y: y coordinate
144
+ *
145
+ * A #PopplerPoint is used to describe a location point on a page
146
+ */
147
+ struct _PopplerPoint
148
+ {
149
+ gdouble x;
150
+ gdouble y;
151
+ };
152
+
153
+ GType poppler_point_get_type (void) G_GNUC_CONST;
154
+ PopplerPoint *poppler_point_new (void);
155
+ PopplerPoint *poppler_point_copy (PopplerPoint *point);
156
+ void poppler_point_free (PopplerPoint *point);
157
+
158
+ /* PopplerQuadrilateral */
159
+
160
+ /* A quadrilateral encompasses a word or group of contiguous words in the
161
+ * text underlying the annotation. The coordinates for each quadrilateral are
162
+ * given in the order x1 y1 x2 y2 x3 y3 x4 y4 specifying the quadrilateral’s four
163
+ * vertices in counterclockwise order */
164
+
165
+ #define POPPLER_TYPE_QUADRILATERAL (poppler_quadrilateral_get_type ())
166
+ /**
167
+ * PopplerQuadrilateral:
168
+ * @p1: a #PopplerPoint with the first vertex coordinates
169
+ * @p2: a #PopplerPoint with the second vertex coordinates
170
+ * @p3: a #PopplerPoint with the third vertex coordinates
171
+ * @p4: a #PopplerPoint with the fourth vertex coordinates
172
+ *
173
+ * A #PopplerQuadrilateral is used to describe rectangle-like polygon
174
+ * with arbitrary inclination on a page.
175
+ *
176
+ * Since: 0.26
177
+ **/
178
+ struct _PopplerQuadrilateral
179
+ {
180
+ PopplerPoint p1;
181
+ PopplerPoint p2;
182
+ PopplerPoint p3;
183
+ PopplerPoint p4;
184
+ };
185
+
186
+ GType poppler_quadrilateral_get_type (void) G_GNUC_CONST;
187
+ PopplerQuadrilateral *poppler_quadrilateral_new (void);
188
+ PopplerQuadrilateral *poppler_quadrilateral_copy (PopplerQuadrilateral *quad);
189
+ void poppler_quadrilateral_free (PopplerQuadrilateral *quad);
190
+
130
191
  /* A color in RGB */
131
192
  #define POPPLER_TYPE_COLOR (poppler_color_get_type ())
132
193