poppler 2.2.4-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README +35 -0
- data/Rakefile +75 -0
- data/ext/poppler/depend +6 -0
- data/ext/poppler/extconf.rb +70 -0
- data/ext/poppler/poppler.def +2 -0
- data/ext/poppler/rbpoppler-action.c +372 -0
- data/ext/poppler/rbpoppler-annotation-callout-line.c +127 -0
- data/ext/poppler/rbpoppler-annotation-free-text.c +46 -0
- data/ext/poppler/rbpoppler-annotation-mapping.c +72 -0
- data/ext/poppler/rbpoppler-annotation-markup.c +98 -0
- data/ext/poppler/rbpoppler-annotation-text.c +53 -0
- data/ext/poppler/rbpoppler-annotation.c +74 -0
- data/ext/poppler/rbpoppler-attachment.c +124 -0
- data/ext/poppler/rbpoppler-button-field.c +56 -0
- data/ext/poppler/rbpoppler-choice-field.c +131 -0
- data/ext/poppler/rbpoppler-color.c +107 -0
- data/ext/poppler/rbpoppler-document.c +224 -0
- data/ext/poppler/rbpoppler-font-info.c +59 -0
- data/ext/poppler/rbpoppler-fonts-iter.c +127 -0
- data/ext/poppler/rbpoppler-form-field-mapping.c +44 -0
- data/ext/poppler/rbpoppler-form-field.c +98 -0
- data/ext/poppler/rbpoppler-image-mapping.c +48 -0
- data/ext/poppler/rbpoppler-index-iter.c +128 -0
- data/ext/poppler/rbpoppler-link-mapping.c +47 -0
- data/ext/poppler/rbpoppler-page-transition.c +59 -0
- data/ext/poppler/rbpoppler-page.c +322 -0
- data/ext/poppler/rbpoppler-private.h +77 -0
- data/ext/poppler/rbpoppler-ps-file.c +66 -0
- data/ext/poppler/rbpoppler-rectangle.c +92 -0
- data/ext/poppler/rbpoppler-text-field.c +91 -0
- data/ext/poppler/rbpoppler.c +111 -0
- data/ext/poppler/rbpoppler.h +61 -0
- data/ext/poppler/rbpopplerconversions.h +105 -0
- data/extconf.rb +49 -0
- data/lib/2.0/poppler.so +0 -0
- data/lib/2.1/poppler.so +0 -0
- data/lib/2.2/poppler.so +0 -0
- data/lib/poppler.rb +105 -0
- data/sample/number-pdf.rb +32 -0
- data/sample/pdf2.rb +132 -0
- data/sample/pdf2svg.rb +26 -0
- data/sample/pdf2text.rb +16 -0
- data/sample/pdfcrop.rb +32 -0
- data/sample/pdfdiv.rb +36 -0
- data/test/fixtures/image.pdf +0 -0
- data/test/fixtures/image.png +0 -0
- data/test/poppler-test-utils.rb +58 -0
- data/test/run-test.rb +32 -0
- data/test/test_annotation.rb +86 -0
- data/test/test_color.rb +26 -0
- data/test/test_constants.rb +30 -0
- data/test/test_document.rb +41 -0
- data/test/test_page.rb +42 -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-48.dll +0 -0
- data/vendor/local/bin/libpoppler-cpp-0.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 +60 -0
- data/vendor/local/include/jerror.h +304 -0
- data/vendor/local/include/jmorecfg.h +446 -0
- data/vendor/local/include/jpeglib.h +1180 -0
- data/vendor/local/include/poppler/cpp/poppler-document.h +104 -0
- data/vendor/local/include/poppler/cpp/poppler-embedded-file.h +55 -0
- data/vendor/local/include/poppler/cpp/poppler-font.h +91 -0
- data/vendor/local/include/poppler/cpp/poppler-global.h +111 -0
- data/vendor/local/include/poppler/cpp/poppler-image.h +71 -0
- data/vendor/local/include/poppler/cpp/poppler-page-renderer.h +66 -0
- data/vendor/local/include/poppler/cpp/poppler-page-transition.h +82 -0
- data/vendor/local/include/poppler/cpp/poppler-page.h +76 -0
- data/vendor/local/include/poppler/cpp/poppler-rectangle.h +84 -0
- data/vendor/local/include/poppler/cpp/poppler-toc.h +74 -0
- data/vendor/local/include/poppler/cpp/poppler-version.h +39 -0
- data/vendor/local/include/poppler/glib/poppler-action.h +316 -0
- data/vendor/local/include/poppler/glib/poppler-annot.h +296 -0
- data/vendor/local/include/poppler/glib/poppler-attachment.h +87 -0
- data/vendor/local/include/poppler/glib/poppler-date.h +30 -0
- data/vendor/local/include/poppler/glib/poppler-document.h +299 -0
- data/vendor/local/include/poppler/glib/poppler-enums.h +116 -0
- data/vendor/local/include/poppler/glib/poppler-features.h +88 -0
- data/vendor/local/include/poppler/glib/poppler-form-field.h +111 -0
- data/vendor/local/include/poppler/glib/poppler-layer.h +43 -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 +377 -0
- data/vendor/local/include/poppler/glib/poppler-structure-element.h +357 -0
- data/vendor/local/include/poppler/glib/poppler.h +250 -0
- data/vendor/local/include/sqlite3.h +7494 -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-cpp.a +0 -0
- data/vendor/local/lib/libpoppler-cpp.dll.a +0 -0
- data/vendor/local/lib/libpoppler-cpp.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-cpp.pc +13 -0
- data/vendor/local/lib/pkgconfig/poppler-glib.pc +13 -0
- data/vendor/local/lib/pkgconfig/poppler-splash.pc +9 -0
- data/vendor/local/lib/pkgconfig/poppler.pc +11 -0
- data/vendor/local/lib/pkgconfig/sqlite3.pc +13 -0
- data/vendor/local/share/gir-1.0/Poppler-0.18.gir +8281 -0
- data/vendor/local/share/gtk-doc/html/poppler/PopplerAnnot.html +3221 -0
- data/vendor/local/share/gtk-doc/html/poppler/PopplerAttachment.html +267 -0
- data/vendor/local/share/gtk-doc/html/poppler/PopplerDocument.html +3328 -0
- data/vendor/local/share/gtk-doc/html/poppler/PopplerFormField.html +1403 -0
- data/vendor/local/share/gtk-doc/html/poppler/PopplerLayer.html +307 -0
- data/vendor/local/share/gtk-doc/html/poppler/PopplerMedia.html +381 -0
- data/vendor/local/share/gtk-doc/html/poppler/PopplerMovie.html +197 -0
- data/vendor/local/share/gtk-doc/html/poppler/PopplerPage.html +3002 -0
- data/vendor/local/share/gtk-doc/html/poppler/PopplerStructureElement.html +3781 -0
- data/vendor/local/share/gtk-doc/html/poppler/annotation-glossary.html +63 -0
- data/vendor/local/share/gtk-doc/html/poppler/api-index-0-12.html +123 -0
- data/vendor/local/share/gtk-doc/html/poppler/api-index-0-14.html +102 -0
- data/vendor/local/share/gtk-doc/html/poppler/api-index-0-16.html +180 -0
- data/vendor/local/share/gtk-doc/html/poppler/api-index-0-18.html +72 -0
- data/vendor/local/share/gtk-doc/html/poppler/api-index-0-20.html +39 -0
- data/vendor/local/share/gtk-doc/html/poppler/api-index-0-22.html +64 -0
- data/vendor/local/share/gtk-doc/html/poppler/api-index-deprecated.html +39 -0
- data/vendor/local/share/gtk-doc/html/poppler/api-index-full.html +1830 -0
- data/vendor/local/share/gtk-doc/html/poppler/ch01.html +74 -0
- data/vendor/local/share/gtk-doc/html/poppler/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/poppler/index.html +85 -0
- data/vendor/local/share/gtk-doc/html/poppler/index.sgml +557 -0
- data/vendor/local/share/gtk-doc/html/poppler/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/poppler/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/poppler/poppler-PDF-Utility-functions.html +107 -0
- data/vendor/local/share/gtk-doc/html/poppler/poppler-PopplerAction.html +796 -0
- data/vendor/local/share/gtk-doc/html/poppler/poppler-PopplerColor.html +201 -0
- data/vendor/local/share/gtk-doc/html/poppler/poppler-Version-and-Features-Information.html +254 -0
- data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler.html +169 -0
- data/vendor/local/share/gtk-doc/html/poppler/poppler.devhelp2 +470 -0
- data/vendor/local/share/gtk-doc/html/poppler/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/poppler/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/poppler/style.css +476 -0
- data/vendor/local/share/gtk-doc/html/poppler/up-insensitive.png +0 -0
- 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 +387 -0
- data/vendor/local/share/man/man1/djpeg.1 +252 -0
- data/vendor/local/share/man/man1/jpegtran.1 +293 -0
- data/vendor/local/share/man/man1/pdfdetach.1 +86 -0
- data/vendor/local/share/man/man1/pdffonts.1 +119 -0
- data/vendor/local/share/man/man1/pdfimages.1 +260 -0
- data/vendor/local/share/man/man1/pdfinfo.1 +152 -0
- data/vendor/local/share/man/man1/pdfseparate.1 +49 -0
- data/vendor/local/share/man/man1/pdftocairo.1 +295 -0
- data/vendor/local/share/man/man1/pdftohtml.1 +107 -0
- data/vendor/local/share/man/man1/pdftoppm.1 +170 -0
- data/vendor/local/share/man/man1/pdftops.1 +217 -0
- data/vendor/local/share/man/man1/pdftotext.1 +137 -0
- data/vendor/local/share/man/man1/pdfunite.1 +33 -0
- data/vendor/local/share/man/man1/rdjpgcom.1 +63 -0
- data/vendor/local/share/man/man1/sqlite3.1 +279 -0
- data/vendor/local/share/man/man1/wrjpgcom.1 +103 -0
- metadata +254 -0
@@ -0,0 +1,377 @@
|
|
1
|
+
/* poppler-page.h: glib interface to poppler
|
2
|
+
* Copyright (C) 2004, 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_PAGE_H__
|
20
|
+
#define __POPPLER_PAGE_H__
|
21
|
+
|
22
|
+
#include <glib-object.h>
|
23
|
+
|
24
|
+
#include "poppler.h"
|
25
|
+
|
26
|
+
#include <cairo.h>
|
27
|
+
|
28
|
+
G_BEGIN_DECLS
|
29
|
+
|
30
|
+
#define POPPLER_TYPE_PAGE (poppler_page_get_type ())
|
31
|
+
#define POPPLER_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_PAGE, PopplerPage))
|
32
|
+
#define POPPLER_IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_PAGE))
|
33
|
+
|
34
|
+
|
35
|
+
GType poppler_page_get_type (void) G_GNUC_CONST;
|
36
|
+
|
37
|
+
void poppler_page_render (PopplerPage *page,
|
38
|
+
cairo_t *cairo);
|
39
|
+
void poppler_page_render_for_printing (PopplerPage *page,
|
40
|
+
cairo_t *cairo);
|
41
|
+
void poppler_page_render_for_printing_with_options (PopplerPage *page,
|
42
|
+
cairo_t *cairo,
|
43
|
+
PopplerPrintFlags options);
|
44
|
+
cairo_surface_t *poppler_page_get_thumbnail (PopplerPage *page);
|
45
|
+
void poppler_page_render_selection (PopplerPage *page,
|
46
|
+
cairo_t *cairo,
|
47
|
+
PopplerRectangle *selection,
|
48
|
+
PopplerRectangle *old_selection,
|
49
|
+
PopplerSelectionStyle style,
|
50
|
+
PopplerColor *glyph_color,
|
51
|
+
PopplerColor *background_color);
|
52
|
+
|
53
|
+
void poppler_page_get_size (PopplerPage *page,
|
54
|
+
double *width,
|
55
|
+
double *height);
|
56
|
+
int poppler_page_get_index (PopplerPage *page);
|
57
|
+
gchar *poppler_page_get_label (PopplerPage *page);
|
58
|
+
double poppler_page_get_duration (PopplerPage *page);
|
59
|
+
PopplerPageTransition *poppler_page_get_transition (PopplerPage *page);
|
60
|
+
gboolean poppler_page_get_thumbnail_size (PopplerPage *page,
|
61
|
+
int *width,
|
62
|
+
int *height);
|
63
|
+
GList *poppler_page_find_text_with_options (PopplerPage *page,
|
64
|
+
const char *text,
|
65
|
+
PopplerFindFlags options);
|
66
|
+
GList *poppler_page_find_text (PopplerPage *page,
|
67
|
+
const char *text);
|
68
|
+
void poppler_page_render_to_ps (PopplerPage *page,
|
69
|
+
PopplerPSFile *ps_file);
|
70
|
+
char *poppler_page_get_text (PopplerPage *page);
|
71
|
+
char *poppler_page_get_text_for_area (PopplerPage *page,
|
72
|
+
PopplerRectangle *area);
|
73
|
+
char *poppler_page_get_selected_text (PopplerPage *page,
|
74
|
+
PopplerSelectionStyle style,
|
75
|
+
PopplerRectangle *selection);
|
76
|
+
cairo_region_t *poppler_page_get_selected_region (PopplerPage *page,
|
77
|
+
gdouble scale,
|
78
|
+
PopplerSelectionStyle style,
|
79
|
+
PopplerRectangle *selection);
|
80
|
+
GList *poppler_page_get_selection_region (PopplerPage *page,
|
81
|
+
gdouble scale,
|
82
|
+
PopplerSelectionStyle style,
|
83
|
+
PopplerRectangle *selection);
|
84
|
+
void poppler_page_selection_region_free(GList *region);
|
85
|
+
GList *poppler_page_get_link_mapping (PopplerPage *page);
|
86
|
+
void poppler_page_free_link_mapping (GList *list);
|
87
|
+
GList *poppler_page_get_image_mapping (PopplerPage *page);
|
88
|
+
void poppler_page_free_image_mapping (GList *list);
|
89
|
+
cairo_surface_t *poppler_page_get_image (PopplerPage *page,
|
90
|
+
gint image_id);
|
91
|
+
GList *poppler_page_get_form_field_mapping (PopplerPage *page);
|
92
|
+
void poppler_page_free_form_field_mapping (GList *list);
|
93
|
+
GList *poppler_page_get_annot_mapping (PopplerPage *page);
|
94
|
+
void poppler_page_free_annot_mapping (GList *list);
|
95
|
+
void poppler_page_add_annot (PopplerPage *page,
|
96
|
+
PopplerAnnot *annot);
|
97
|
+
void poppler_page_remove_annot (PopplerPage *page,
|
98
|
+
PopplerAnnot *annot);
|
99
|
+
void poppler_page_get_crop_box (PopplerPage *page,
|
100
|
+
PopplerRectangle *rect);
|
101
|
+
gboolean poppler_page_get_text_layout (PopplerPage *page,
|
102
|
+
PopplerRectangle **rectangles,
|
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);
|
108
|
+
GList *poppler_page_get_text_attributes (PopplerPage *page);
|
109
|
+
void poppler_page_free_text_attributes (GList *list);
|
110
|
+
GList * poppler_page_get_text_attributes_for_area (PopplerPage *page,
|
111
|
+
PopplerRectangle *area);
|
112
|
+
|
113
|
+
/* A rectangle on a page, with coordinates in PDF points. */
|
114
|
+
#define POPPLER_TYPE_RECTANGLE (poppler_rectangle_get_type ())
|
115
|
+
/**
|
116
|
+
* PopplerRectangle:
|
117
|
+
* @x1: x coordinate of lower left corner
|
118
|
+
* @y1: y coordinate of lower left corner
|
119
|
+
* @x2: x coordinate of upper right corner
|
120
|
+
* @y2: y coordinate of upper right corner
|
121
|
+
*
|
122
|
+
* A #PopplerRectangle is used to describe
|
123
|
+
* locations on a page and bounding boxes
|
124
|
+
*/
|
125
|
+
struct _PopplerRectangle
|
126
|
+
{
|
127
|
+
gdouble x1;
|
128
|
+
gdouble y1;
|
129
|
+
gdouble x2;
|
130
|
+
gdouble y2;
|
131
|
+
};
|
132
|
+
|
133
|
+
GType poppler_rectangle_get_type (void) G_GNUC_CONST;
|
134
|
+
PopplerRectangle *poppler_rectangle_new (void);
|
135
|
+
PopplerRectangle *poppler_rectangle_copy (PopplerRectangle *rectangle);
|
136
|
+
void poppler_rectangle_free (PopplerRectangle *rectangle);
|
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
|
+
|
191
|
+
/* A color in RGB */
|
192
|
+
#define POPPLER_TYPE_COLOR (poppler_color_get_type ())
|
193
|
+
|
194
|
+
/**
|
195
|
+
* PopplerColor:
|
196
|
+
* @red: the red componment of color
|
197
|
+
* @green: the green component of color
|
198
|
+
* @blue: the blue component of color
|
199
|
+
*
|
200
|
+
* A #PopplerColor describes a RGB color. Color components
|
201
|
+
* are values between 0 and 65535
|
202
|
+
*/
|
203
|
+
struct _PopplerColor
|
204
|
+
{
|
205
|
+
guint16 red;
|
206
|
+
guint16 green;
|
207
|
+
guint16 blue;
|
208
|
+
};
|
209
|
+
|
210
|
+
GType poppler_color_get_type (void) G_GNUC_CONST;
|
211
|
+
PopplerColor *poppler_color_new (void);
|
212
|
+
PopplerColor *poppler_color_copy (PopplerColor *color);
|
213
|
+
void poppler_color_free (PopplerColor *color);
|
214
|
+
|
215
|
+
/* Text attributes. */
|
216
|
+
#define POPPLER_TYPE_TEXT_ATTRIBUTES (poppler_text_attributes_get_type ())
|
217
|
+
/**
|
218
|
+
* PopplerTextAttributes:
|
219
|
+
* @font_name: font name
|
220
|
+
* @font_size: font size
|
221
|
+
* @is_underlined: if text is underlined
|
222
|
+
* @color: a #PopplerColor, the foreground color
|
223
|
+
* @start_index: start position this text attributes apply
|
224
|
+
* @end_index: end position this text text attributes apply
|
225
|
+
*
|
226
|
+
* A #PopplerTextAttributes is used to describe text attributes of a range of text
|
227
|
+
*
|
228
|
+
* Since: 0.18
|
229
|
+
*/
|
230
|
+
struct _PopplerTextAttributes
|
231
|
+
{
|
232
|
+
gchar *font_name;
|
233
|
+
gdouble font_size;
|
234
|
+
gboolean is_underlined;
|
235
|
+
PopplerColor color;
|
236
|
+
|
237
|
+
gint start_index;
|
238
|
+
gint end_index;
|
239
|
+
};
|
240
|
+
|
241
|
+
GType poppler_text_attributes_get_type (void) G_GNUC_CONST;
|
242
|
+
PopplerTextAttributes *poppler_text_attributes_new (void);
|
243
|
+
PopplerTextAttributes *poppler_text_attributes_copy (PopplerTextAttributes *text_attrs);
|
244
|
+
void poppler_text_attributes_free (PopplerTextAttributes *text_attrs);
|
245
|
+
|
246
|
+
/* Mapping between areas on the current page and PopplerActions */
|
247
|
+
#define POPPLER_TYPE_LINK_MAPPING (poppler_link_mapping_get_type ())
|
248
|
+
|
249
|
+
/**
|
250
|
+
* PopplerLinkMapping:
|
251
|
+
* @area: a #PopplerRectangle representing an area of the page
|
252
|
+
* @action: a #PopplerAction
|
253
|
+
*
|
254
|
+
* A #PopplerLinkMapping structure represents the location
|
255
|
+
* of @action on the page
|
256
|
+
*/
|
257
|
+
struct _PopplerLinkMapping
|
258
|
+
{
|
259
|
+
PopplerRectangle area;
|
260
|
+
PopplerAction *action;
|
261
|
+
};
|
262
|
+
|
263
|
+
GType poppler_link_mapping_get_type (void) G_GNUC_CONST;
|
264
|
+
PopplerLinkMapping *poppler_link_mapping_new (void);
|
265
|
+
PopplerLinkMapping *poppler_link_mapping_copy (PopplerLinkMapping *mapping);
|
266
|
+
void poppler_link_mapping_free (PopplerLinkMapping *mapping);
|
267
|
+
|
268
|
+
/* Page Transition */
|
269
|
+
#define POPPLER_TYPE_PAGE_TRANSITION (poppler_page_transition_get_type ())
|
270
|
+
|
271
|
+
/**
|
272
|
+
* PopplerPageTransition:
|
273
|
+
* @type: the type of transtition
|
274
|
+
* @alignment: the dimension in which the transition effect shall occur.
|
275
|
+
* Only for #POPPLER_PAGE_TRANSITION_SPLIT and #POPPLER_PAGE_TRANSITION_BLINDS transition types
|
276
|
+
* @direction: the direccion of motion for the transition effect.
|
277
|
+
* Only for #POPPLER_PAGE_TRANSITION_SPLIT, #POPPLER_PAGE_TRANSITION_BOX and #POPPLER_PAGE_TRANSITION_FLY
|
278
|
+
* transition types
|
279
|
+
* @duration: the duration of the transition effect
|
280
|
+
* @angle: the direction in which the specified transition effect shall moves,
|
281
|
+
* expressed in degrees counterclockwise starting from a left-to-right direction.
|
282
|
+
* Only for #POPPLER_PAGE_TRANSITION_WIPE, #POPPLER_PAGE_TRANSITION_GLITTER, #POPPLER_PAGE_TRANSITION_FLY,
|
283
|
+
* #POPPLER_PAGE_TRANSITION_COVER, #POPPLER_PAGE_TRANSITION_UNCOVER and #POPPLER_PAGE_TRANSITION_PUSH
|
284
|
+
* transition types
|
285
|
+
* @scale: the starting or ending scale at which the changes shall be drawn.
|
286
|
+
* Only for #POPPLER_PAGE_TRANSITION_FLY transition type
|
287
|
+
* @rectangular: whether the area that will be flown is rectangular and opaque.
|
288
|
+
* Only for #POPPLER_PAGE_TRANSITION_FLY transition type
|
289
|
+
*
|
290
|
+
* A #PopplerPageTransition structures describes a visual transition
|
291
|
+
* to use when moving between pages during a presentation
|
292
|
+
*/
|
293
|
+
struct _PopplerPageTransition
|
294
|
+
{
|
295
|
+
PopplerPageTransitionType type;
|
296
|
+
PopplerPageTransitionAlignment alignment;
|
297
|
+
PopplerPageTransitionDirection direction;
|
298
|
+
gint duration;
|
299
|
+
gint angle;
|
300
|
+
gdouble scale;
|
301
|
+
gboolean rectangular;
|
302
|
+
};
|
303
|
+
|
304
|
+
GType poppler_page_transition_get_type (void) G_GNUC_CONST;
|
305
|
+
PopplerPageTransition *poppler_page_transition_new (void);
|
306
|
+
PopplerPageTransition *poppler_page_transition_copy (PopplerPageTransition *transition);
|
307
|
+
void poppler_page_transition_free (PopplerPageTransition *transition);
|
308
|
+
|
309
|
+
/* Mapping between areas on the current page and images */
|
310
|
+
#define POPPLER_TYPE_IMAGE_MAPPING (poppler_image_mapping_get_type ())
|
311
|
+
|
312
|
+
/**
|
313
|
+
* PopplerImageMapping:
|
314
|
+
* @area: a #PopplerRectangle representing an area of the page
|
315
|
+
* @image_id: an image identifier
|
316
|
+
*
|
317
|
+
* A #PopplerImageMapping structure represents the location
|
318
|
+
* of an image on the page
|
319
|
+
*/
|
320
|
+
struct _PopplerImageMapping
|
321
|
+
{
|
322
|
+
PopplerRectangle area;
|
323
|
+
gint image_id;
|
324
|
+
};
|
325
|
+
|
326
|
+
GType poppler_image_mapping_get_type (void) G_GNUC_CONST;
|
327
|
+
PopplerImageMapping *poppler_image_mapping_new (void);
|
328
|
+
PopplerImageMapping *poppler_image_mapping_copy (PopplerImageMapping *mapping);
|
329
|
+
void poppler_image_mapping_free (PopplerImageMapping *mapping);
|
330
|
+
|
331
|
+
/* Mapping between areas on the current page and form fields */
|
332
|
+
#define POPPLER_TYPE_FORM_FIELD_MAPPING (poppler_form_field_mapping_get_type ())
|
333
|
+
|
334
|
+
/**
|
335
|
+
* PopplerFormFieldMapping:
|
336
|
+
* @area: a #PopplerRectangle representing an area of the page
|
337
|
+
* @field: a #PopplerFormField
|
338
|
+
*
|
339
|
+
* A #PopplerFormFieldMapping structure represents the location
|
340
|
+
* of @field on the page
|
341
|
+
*/
|
342
|
+
struct _PopplerFormFieldMapping
|
343
|
+
{
|
344
|
+
PopplerRectangle area;
|
345
|
+
PopplerFormField *field;
|
346
|
+
};
|
347
|
+
|
348
|
+
GType poppler_form_field_mapping_get_type (void) G_GNUC_CONST;
|
349
|
+
PopplerFormFieldMapping *poppler_form_field_mapping_new (void);
|
350
|
+
PopplerFormFieldMapping *poppler_form_field_mapping_copy (PopplerFormFieldMapping *mapping);
|
351
|
+
void poppler_form_field_mapping_free (PopplerFormFieldMapping *mapping);
|
352
|
+
|
353
|
+
/* Mapping between areas on the current page and annots */
|
354
|
+
#define POPPLER_TYPE_ANNOT_MAPPING (poppler_annot_mapping_get_type ())
|
355
|
+
|
356
|
+
/**
|
357
|
+
* PopplerAnnotMapping:
|
358
|
+
* @area: a #PopplerRectangle representing an area of the page
|
359
|
+
* @annot: a #PopplerAnnot
|
360
|
+
*
|
361
|
+
* A #PopplerAnnotMapping structure represents the location
|
362
|
+
* of @annot on the page
|
363
|
+
*/
|
364
|
+
struct _PopplerAnnotMapping
|
365
|
+
{
|
366
|
+
PopplerRectangle area;
|
367
|
+
PopplerAnnot *annot;
|
368
|
+
};
|
369
|
+
|
370
|
+
GType poppler_annot_mapping_get_type (void) G_GNUC_CONST;
|
371
|
+
PopplerAnnotMapping *poppler_annot_mapping_new (void);
|
372
|
+
PopplerAnnotMapping *poppler_annot_mapping_copy (PopplerAnnotMapping *mapping);
|
373
|
+
void poppler_annot_mapping_free (PopplerAnnotMapping *mapping);
|
374
|
+
|
375
|
+
G_END_DECLS
|
376
|
+
|
377
|
+
#endif /* __POPPLER_PAGE_H__ */
|
@@ -0,0 +1,357 @@
|
|
1
|
+
/* poppler-structure-element.h: glib interface to poppler
|
2
|
+
*
|
3
|
+
* Copyright (C) 2013 Igalia S.L.
|
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_STRUCTURE_ELEMENT_H__
|
21
|
+
#define __POPPLER_STRUCTURE_ELEMENT_H__
|
22
|
+
|
23
|
+
#include <glib-object.h>
|
24
|
+
#include "poppler.h"
|
25
|
+
|
26
|
+
G_BEGIN_DECLS
|
27
|
+
|
28
|
+
#define POPPLER_TYPE_STRUCTURE_ELEMENT (poppler_structure_element_get_type ())
|
29
|
+
#define POPPLER_STRUCTURE_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), POPPLER_TYPE_STRUCTURE_ELEMENT, PopplerStructureElement))
|
30
|
+
#define POPPLER_IS_STRUCTURE_ELEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), POPPLER_TYPE_STRUCTURE_ELEMENT))
|
31
|
+
|
32
|
+
/**
|
33
|
+
* PopplerStructureElementKind:
|
34
|
+
*/
|
35
|
+
typedef enum {
|
36
|
+
POPPLER_STRUCTURE_ELEMENT_CONTENT,
|
37
|
+
POPPLER_STRUCTURE_ELEMENT_OBJECT_REFERENCE,
|
38
|
+
POPPLER_STRUCTURE_ELEMENT_DOCUMENT,
|
39
|
+
POPPLER_STRUCTURE_ELEMENT_PART,
|
40
|
+
POPPLER_STRUCTURE_ELEMENT_ARTICLE,
|
41
|
+
POPPLER_STRUCTURE_ELEMENT_SECTION,
|
42
|
+
POPPLER_STRUCTURE_ELEMENT_DIV,
|
43
|
+
POPPLER_STRUCTURE_ELEMENT_SPAN,
|
44
|
+
POPPLER_STRUCTURE_ELEMENT_QUOTE,
|
45
|
+
POPPLER_STRUCTURE_ELEMENT_NOTE,
|
46
|
+
POPPLER_STRUCTURE_ELEMENT_REFERENCE,
|
47
|
+
POPPLER_STRUCTURE_ELEMENT_BIBENTRY,
|
48
|
+
POPPLER_STRUCTURE_ELEMENT_CODE,
|
49
|
+
POPPLER_STRUCTURE_ELEMENT_LINK,
|
50
|
+
POPPLER_STRUCTURE_ELEMENT_ANNOT,
|
51
|
+
POPPLER_STRUCTURE_ELEMENT_BLOCKQUOTE,
|
52
|
+
POPPLER_STRUCTURE_ELEMENT_CAPTION,
|
53
|
+
POPPLER_STRUCTURE_ELEMENT_NONSTRUCT,
|
54
|
+
POPPLER_STRUCTURE_ELEMENT_TOC,
|
55
|
+
POPPLER_STRUCTURE_ELEMENT_TOC_ITEM,
|
56
|
+
POPPLER_STRUCTURE_ELEMENT_INDEX,
|
57
|
+
POPPLER_STRUCTURE_ELEMENT_PRIVATE,
|
58
|
+
POPPLER_STRUCTURE_ELEMENT_PARAGRAPH,
|
59
|
+
POPPLER_STRUCTURE_ELEMENT_HEADING,
|
60
|
+
POPPLER_STRUCTURE_ELEMENT_HEADING_1,
|
61
|
+
POPPLER_STRUCTURE_ELEMENT_HEADING_2,
|
62
|
+
POPPLER_STRUCTURE_ELEMENT_HEADING_3,
|
63
|
+
POPPLER_STRUCTURE_ELEMENT_HEADING_4,
|
64
|
+
POPPLER_STRUCTURE_ELEMENT_HEADING_5,
|
65
|
+
POPPLER_STRUCTURE_ELEMENT_HEADING_6,
|
66
|
+
POPPLER_STRUCTURE_ELEMENT_LIST,
|
67
|
+
POPPLER_STRUCTURE_ELEMENT_LIST_ITEM,
|
68
|
+
POPPLER_STRUCTURE_ELEMENT_LIST_LABEL,
|
69
|
+
POPPLER_STRUCTURE_ELEMENT_LIST_BODY,
|
70
|
+
POPPLER_STRUCTURE_ELEMENT_TABLE,
|
71
|
+
POPPLER_STRUCTURE_ELEMENT_TABLE_ROW,
|
72
|
+
POPPLER_STRUCTURE_ELEMENT_TABLE_HEADING,
|
73
|
+
POPPLER_STRUCTURE_ELEMENT_TABLE_DATA,
|
74
|
+
POPPLER_STRUCTURE_ELEMENT_TABLE_HEADER,
|
75
|
+
POPPLER_STRUCTURE_ELEMENT_TABLE_FOOTER,
|
76
|
+
POPPLER_STRUCTURE_ELEMENT_TABLE_BODY,
|
77
|
+
POPPLER_STRUCTURE_ELEMENT_RUBY,
|
78
|
+
POPPLER_STRUCTURE_ELEMENT_RUBY_BASE_TEXT,
|
79
|
+
POPPLER_STRUCTURE_ELEMENT_RUBY_ANNOT_TEXT,
|
80
|
+
POPPLER_STRUCTURE_ELEMENT_RUBY_PUNCTUATION,
|
81
|
+
POPPLER_STRUCTURE_ELEMENT_WARICHU,
|
82
|
+
POPPLER_STRUCTURE_ELEMENT_WARICHU_TEXT,
|
83
|
+
POPPLER_STRUCTURE_ELEMENT_WARICHU_PUNCTUATION,
|
84
|
+
POPPLER_STRUCTURE_ELEMENT_FIGURE,
|
85
|
+
POPPLER_STRUCTURE_ELEMENT_FORMULA,
|
86
|
+
POPPLER_STRUCTURE_ELEMENT_FORM,
|
87
|
+
} PopplerStructureElementKind;
|
88
|
+
|
89
|
+
/**
|
90
|
+
* PopplerStructureGetTextFlags:
|
91
|
+
* @POPPLER_STRUCTURE_GET_TEXT_NONE: No flags.
|
92
|
+
* @POPPLER_STRUCTURE_GET_TEXT_RECURSIVE: For non-leaf, non-content
|
93
|
+
* elements, recursively obtain the text from all the elements
|
94
|
+
* enclosed in the subtree.
|
95
|
+
*/
|
96
|
+
typedef enum {
|
97
|
+
POPPLER_STRUCTURE_GET_TEXT_NONE = 0,
|
98
|
+
POPPLER_STRUCTURE_GET_TEXT_RECURSIVE = (1 << 0),
|
99
|
+
} PopplerStructureGetTextFlags;
|
100
|
+
|
101
|
+
/**
|
102
|
+
* PopplerStructurePlacement:
|
103
|
+
*/
|
104
|
+
typedef enum {
|
105
|
+
POPPLER_STRUCTURE_PLACEMENT_BLOCK,
|
106
|
+
POPPLER_STRUCTURE_PLACEMENT_INLINE,
|
107
|
+
POPPLER_STRUCTURE_PLACEMENT_BEFORE,
|
108
|
+
POPPLER_STRUCTURE_PLACEMENT_START,
|
109
|
+
POPPLER_STRUCTURE_PLACEMENT_END,
|
110
|
+
} PopplerStructurePlacement;
|
111
|
+
|
112
|
+
/**
|
113
|
+
* PopplerStructureWritingMode:
|
114
|
+
*/
|
115
|
+
typedef enum {
|
116
|
+
POPPLER_STRUCTURE_WRITING_MODE_LR_TB,
|
117
|
+
POPPLER_STRUCTURE_WRITING_MODE_RL_TB,
|
118
|
+
POPPLER_STRUCTURE_WRITING_MODE_TB_RL,
|
119
|
+
} PopplerStructureWritingMode;
|
120
|
+
|
121
|
+
/**
|
122
|
+
* PopplerStructureBorderStyle:
|
123
|
+
*/
|
124
|
+
typedef enum {
|
125
|
+
POPPLER_STRUCTURE_BORDER_STYLE_NONE,
|
126
|
+
POPPLER_STRUCTURE_BORDER_STYLE_HIDDEN,
|
127
|
+
POPPLER_STRUCTURE_BORDER_STYLE_DOTTED,
|
128
|
+
POPPLER_STRUCTURE_BORDER_STYLE_DASHED,
|
129
|
+
POPPLER_STRUCTURE_BORDER_STYLE_SOLID,
|
130
|
+
POPPLER_STRUCTURE_BORDER_STYLE_DOUBLE,
|
131
|
+
POPPLER_STRUCTURE_BORDER_STYLE_GROOVE,
|
132
|
+
POPPLER_STRUCTURE_BORDER_STYLE_INSET,
|
133
|
+
POPPLER_STRUCTURE_BORDER_STYLE_OUTSET,
|
134
|
+
} PopplerStructureBorderStyle;
|
135
|
+
|
136
|
+
/**
|
137
|
+
* PopplerStructureTextAlign:
|
138
|
+
*/
|
139
|
+
typedef enum {
|
140
|
+
POPPLER_STRUCTURE_TEXT_ALIGN_START,
|
141
|
+
POPPLER_STRUCTURE_TEXT_ALIGN_CENTER,
|
142
|
+
POPPLER_STRUCTURE_TEXT_ALIGN_END,
|
143
|
+
POPPLER_STRUCTURE_TEXT_ALIGN_JUSTIFY,
|
144
|
+
} PopplerStructureTextAlign;
|
145
|
+
|
146
|
+
/**
|
147
|
+
* PopplerStructureBlockAlign:
|
148
|
+
*/
|
149
|
+
typedef enum {
|
150
|
+
POPPLER_STRUCTURE_BLOCK_ALIGN_BEFORE,
|
151
|
+
POPPLER_STRUCTURE_BLOCK_ALIGN_MIDDLE,
|
152
|
+
POPPLER_STRUCTURE_BLOCK_ALIGN_AFTER,
|
153
|
+
POPPLER_STRUCTURE_BLOCK_ALIGN_JUSTIFY,
|
154
|
+
} PopplerStructureBlockAlign;
|
155
|
+
|
156
|
+
/**
|
157
|
+
* PopplerStructureInlineAlign:
|
158
|
+
*/
|
159
|
+
typedef enum {
|
160
|
+
POPPLER_STRUCTURE_INLINE_ALIGN_START,
|
161
|
+
POPPLER_STRUCTURE_INLINE_ALIGN_CENTER,
|
162
|
+
POPPLER_STRUCTURE_INLINE_ALIGN_END,
|
163
|
+
} PopplerStructureInlineAlign;
|
164
|
+
|
165
|
+
/**
|
166
|
+
* PopplerStructureTextDecoration:
|
167
|
+
*/
|
168
|
+
typedef enum {
|
169
|
+
POPPLER_STRUCTURE_TEXT_DECORATION_NONE,
|
170
|
+
POPPLER_STRUCTURE_TEXT_DECORATION_UNDERLINE,
|
171
|
+
POPPLER_STRUCTURE_TEXT_DECORATION_OVERLINE,
|
172
|
+
POPPLER_STRUCTURE_TEXT_DECORATION_LINETHROUGH,
|
173
|
+
} PopplerStructureTextDecoration;
|
174
|
+
|
175
|
+
/**
|
176
|
+
* PopplerStructureRubyAlign:
|
177
|
+
*/
|
178
|
+
typedef enum
|
179
|
+
{
|
180
|
+
POPPLER_STRUCTURE_RUBY_ALIGN_START,
|
181
|
+
POPPLER_STRUCTURE_RUBY_ALIGN_CENTER,
|
182
|
+
POPPLER_STRUCTURE_RUBY_ALIGN_END,
|
183
|
+
POPPLER_STRUCTURE_RUBY_ALIGN_JUSTIFY,
|
184
|
+
POPPLER_STRUCTURE_RUBY_ALIGN_DISTRIBUTE,
|
185
|
+
} PopplerStructureRubyAlign;
|
186
|
+
|
187
|
+
/**
|
188
|
+
* PopplerStructureRubyPosition:
|
189
|
+
*/
|
190
|
+
typedef enum {
|
191
|
+
POPPLER_STRUCTURE_RUBY_POSITION_BEFORE,
|
192
|
+
POPPLER_STRUCTURE_RUBY_POSITION_AFTER,
|
193
|
+
POPPLER_STRUCTURE_RUBY_POSITION_WARICHU,
|
194
|
+
POPPLER_STRUCTURE_RUBY_POSITION_INLINE,
|
195
|
+
} PopplerStructureRubyPosition;
|
196
|
+
|
197
|
+
/**
|
198
|
+
* PopplerStructureGlyphOrientation:
|
199
|
+
*/
|
200
|
+
typedef enum {
|
201
|
+
POPPLER_STRUCTURE_GLYPH_ORIENTATION_AUTO,
|
202
|
+
POPPLER_STRUCTURE_GLYPH_ORIENTATION_0 = POPPLER_STRUCTURE_GLYPH_ORIENTATION_AUTO,
|
203
|
+
POPPLER_STRUCTURE_GLYPH_ORIENTATION_90,
|
204
|
+
POPPLER_STRUCTURE_GLYPH_ORIENTATION_180,
|
205
|
+
POPPLER_STRUCTURE_GLYPH_ORIENTATION_270,
|
206
|
+
} PopplerStructureGlyphOrientation;
|
207
|
+
|
208
|
+
/**
|
209
|
+
* PopplerStructureListNumbering:
|
210
|
+
*/
|
211
|
+
typedef enum {
|
212
|
+
POPPLER_STRUCTURE_LIST_NUMBERING_NONE,
|
213
|
+
POPPLER_STRUCTURE_LIST_NUMBERING_DISC,
|
214
|
+
POPPLER_STRUCTURE_LIST_NUMBERING_CIRCLE,
|
215
|
+
POPPLER_STRUCTURE_LIST_NUMBERING_SQUARE,
|
216
|
+
POPPLER_STRUCTURE_LIST_NUMBERING_DECIMAL,
|
217
|
+
POPPLER_STRUCTURE_LIST_NUMBERING_UPPER_ROMAN,
|
218
|
+
POPPLER_STRUCTURE_LIST_NUMBERING_LOWER_ROMAN,
|
219
|
+
POPPLER_STRUCTURE_LIST_NUMBERING_UPPER_ALPHA,
|
220
|
+
POPPLER_STRUCTURE_LIST_NUMBERING_LOWER_ALPHA,
|
221
|
+
} PopplerStructureListNumbering;
|
222
|
+
|
223
|
+
/**
|
224
|
+
* PopplerStructureFormRole:
|
225
|
+
*/
|
226
|
+
typedef enum {
|
227
|
+
POPPLER_STRUCTURE_FORM_ROLE_UNDEFINED,
|
228
|
+
POPPLER_STRUCTURE_FORM_ROLE_RADIO_BUTTON,
|
229
|
+
POPPLER_STRUCTURE_FORM_ROLE_PUSH_BUTTON,
|
230
|
+
POPPLER_STRUCTURE_FORM_ROLE_TEXT_VALUE,
|
231
|
+
POPPLER_STRUCTURE_FORM_ROLE_CHECKBOX,
|
232
|
+
} PopplerStructureFormRole;
|
233
|
+
|
234
|
+
/**
|
235
|
+
* PopplerStructureFormState:
|
236
|
+
*/
|
237
|
+
typedef enum {
|
238
|
+
POPPLER_STRUCTURE_FORM_STATE_ON,
|
239
|
+
POPPLER_STRUCTURE_FORM_STATE_OFF,
|
240
|
+
POPPLER_STRUCTURE_FORM_STATE_NEUTRAL,
|
241
|
+
} PopplerStructureFormState;
|
242
|
+
|
243
|
+
/**
|
244
|
+
* PopplerStructureTableScope:
|
245
|
+
*/
|
246
|
+
typedef enum {
|
247
|
+
POPPLER_STRUCTURE_TABLE_SCOPE_ROW,
|
248
|
+
POPPLER_STRUCTURE_TABLE_SCOPE_COLUMN,
|
249
|
+
POPPLER_STRUCTURE_TABLE_SCOPE_BOTH,
|
250
|
+
} PopplerStructureTableScope;
|
251
|
+
|
252
|
+
|
253
|
+
GType poppler_structure_element_get_type (void) G_GNUC_CONST;
|
254
|
+
PopplerStructureElementKind poppler_structure_element_get_kind (PopplerStructureElement *poppler_structure_element);
|
255
|
+
gint poppler_structure_element_get_page (PopplerStructureElement *poppler_structure_element);
|
256
|
+
gboolean poppler_structure_element_is_content (PopplerStructureElement *poppler_structure_element);
|
257
|
+
gboolean poppler_structure_element_is_inline (PopplerStructureElement *poppler_structure_element);
|
258
|
+
gboolean poppler_structure_element_is_block (PopplerStructureElement *poppler_structure_element);
|
259
|
+
gboolean poppler_structure_element_is_grouping (PopplerStructureElement *poppler_structure_element);
|
260
|
+
gchar *poppler_structure_element_get_id (PopplerStructureElement *poppler_structure_element);
|
261
|
+
gchar *poppler_structure_element_get_title (PopplerStructureElement *poppler_structure_element);
|
262
|
+
gchar *poppler_structure_element_get_abbreviation (PopplerStructureElement *poppler_structure_element);
|
263
|
+
gchar *poppler_structure_element_get_language (PopplerStructureElement *poppler_structure_element);
|
264
|
+
gchar *poppler_structure_element_get_text (PopplerStructureElement *poppler_structure_element,
|
265
|
+
PopplerStructureGetTextFlags flags);
|
266
|
+
gchar *poppler_structure_element_get_alt_text (PopplerStructureElement *poppler_structure_element);
|
267
|
+
gchar *poppler_structure_element_get_actual_text (PopplerStructureElement *poppler_structure_element);
|
268
|
+
PopplerTextSpan **poppler_structure_element_get_text_spans (PopplerStructureElement *poppler_structure_element,
|
269
|
+
guint *n_text_spans);
|
270
|
+
|
271
|
+
PopplerStructurePlacement poppler_structure_element_get_placement (PopplerStructureElement *poppler_structure_element);
|
272
|
+
PopplerStructureWritingMode poppler_structure_element_get_writing_mode (PopplerStructureElement *poppler_structure_element);
|
273
|
+
gboolean poppler_structure_element_get_background_color (PopplerStructureElement *poppler_structure_element,
|
274
|
+
PopplerColor *color);
|
275
|
+
gboolean poppler_structure_element_get_border_color (PopplerStructureElement *poppler_structure_element,
|
276
|
+
PopplerColor *colors);
|
277
|
+
void poppler_structure_element_get_border_style (PopplerStructureElement *poppler_structure_element,
|
278
|
+
PopplerStructureBorderStyle *border_styles);
|
279
|
+
gboolean poppler_structure_element_get_border_thickness (PopplerStructureElement *poppler_structure_element,
|
280
|
+
gdouble *border_thicknesses);
|
281
|
+
void poppler_structure_element_get_padding (PopplerStructureElement *poppler_structure_element,
|
282
|
+
gdouble *paddings);
|
283
|
+
gboolean poppler_structure_element_get_color (PopplerStructureElement *poppler_structure_element,
|
284
|
+
PopplerColor *color);
|
285
|
+
|
286
|
+
gdouble poppler_structure_element_get_space_before (PopplerStructureElement *poppler_structure_element);
|
287
|
+
gdouble poppler_structure_element_get_space_after (PopplerStructureElement *poppler_structure_element);
|
288
|
+
gdouble poppler_structure_element_get_start_indent (PopplerStructureElement *poppler_structure_element);
|
289
|
+
gdouble poppler_structure_element_get_end_indent (PopplerStructureElement *poppler_structure_element);
|
290
|
+
gdouble poppler_structure_element_get_text_indent (PopplerStructureElement *poppler_structure_element);
|
291
|
+
PopplerStructureTextAlign poppler_structure_element_get_text_align (PopplerStructureElement *poppler_structure_element);
|
292
|
+
gboolean poppler_structure_element_get_bounding_box (PopplerStructureElement *poppler_structure_element,
|
293
|
+
PopplerRectangle *bounding_box);
|
294
|
+
gdouble poppler_structure_element_get_width (PopplerStructureElement *poppler_structure_element);
|
295
|
+
gdouble poppler_structure_element_get_height (PopplerStructureElement *poppler_structure_element);
|
296
|
+
PopplerStructureBlockAlign poppler_structure_element_get_block_align (PopplerStructureElement *poppler_structure_element);
|
297
|
+
PopplerStructureInlineAlign poppler_structure_element_get_inline_align (PopplerStructureElement *poppler_structure_element);
|
298
|
+
void poppler_structure_element_get_table_border_style (PopplerStructureElement *poppler_structure_element,
|
299
|
+
PopplerStructureBorderStyle *border_styles);
|
300
|
+
void poppler_structure_element_get_table_padding (PopplerStructureElement *poppler_structure_element,
|
301
|
+
gdouble *paddings);
|
302
|
+
|
303
|
+
gdouble poppler_structure_element_get_baseline_shift (PopplerStructureElement *poppler_structure_element);
|
304
|
+
gdouble poppler_structure_element_get_line_height (PopplerStructureElement *poppler_structure_element);
|
305
|
+
gboolean poppler_structure_element_get_text_decoration_color
|
306
|
+
(PopplerStructureElement *poppler_structure_element,
|
307
|
+
PopplerColor *color);
|
308
|
+
gdouble poppler_structure_element_get_text_decoration_thickness
|
309
|
+
(PopplerStructureElement *poppler_structure_element);
|
310
|
+
PopplerStructureTextDecoration poppler_structure_element_get_text_decoration_type
|
311
|
+
(PopplerStructureElement *poppler_structure_element);
|
312
|
+
PopplerStructureRubyAlign poppler_structure_element_get_ruby_align (PopplerStructureElement *poppler_structure_element);
|
313
|
+
PopplerStructureRubyPosition poppler_structure_element_get_ruby_position (PopplerStructureElement *poppler_structure_element);
|
314
|
+
PopplerStructureGlyphOrientation poppler_structure_element_get_glyph_orientation (PopplerStructureElement *poppler_structure_element);
|
315
|
+
|
316
|
+
guint poppler_structure_element_get_column_count (PopplerStructureElement *poppler_structure_element);
|
317
|
+
gdouble *poppler_structure_element_get_column_gaps (PopplerStructureElement *poppler_structure_element,
|
318
|
+
guint *n_values);
|
319
|
+
gdouble *poppler_structure_element_get_column_widths (PopplerStructureElement *poppler_structure_element,
|
320
|
+
guint *n_values);
|
321
|
+
|
322
|
+
PopplerStructureListNumbering poppler_structure_element_get_list_numbering (PopplerStructureElement *poppler_structure_element);
|
323
|
+
|
324
|
+
PopplerStructureFormRole poppler_structure_element_get_form_role (PopplerStructureElement *poppler_structure_element);
|
325
|
+
PopplerStructureFormState poppler_structure_element_get_form_state (PopplerStructureElement *poppler_structure_element);
|
326
|
+
gchar *poppler_structure_element_get_form_description (PopplerStructureElement *poppler_structure_element);
|
327
|
+
|
328
|
+
guint poppler_structure_element_get_table_row_span (PopplerStructureElement *poppler_structure_element);
|
329
|
+
guint poppler_structure_element_get_table_column_span (PopplerStructureElement *poppler_structure_element);
|
330
|
+
gchar **poppler_structure_element_get_table_headers (PopplerStructureElement *poppler_structure_element);
|
331
|
+
PopplerStructureTableScope poppler_structure_element_get_table_scope (PopplerStructureElement *poppler_structure_element);
|
332
|
+
gchar *poppler_structure_element_get_table_summary (PopplerStructureElement *poppler_structure_element);
|
333
|
+
|
334
|
+
#define POPPLER_TYPE_STRUCTURE_ELEMENT_ITER (poppler_structure_element_iter_get_type ())
|
335
|
+
GType poppler_structure_element_iter_get_type (void) G_GNUC_CONST;
|
336
|
+
PopplerStructureElementIter *poppler_structure_element_iter_new (PopplerDocument *poppler_document);
|
337
|
+
PopplerStructureElementIter *poppler_structure_element_iter_get_child (PopplerStructureElementIter *parent);
|
338
|
+
PopplerStructureElementIter *poppler_structure_element_iter_copy (PopplerStructureElementIter *iter);
|
339
|
+
PopplerStructureElement *poppler_structure_element_iter_get_element (PopplerStructureElementIter *iter);
|
340
|
+
gboolean poppler_structure_element_iter_next (PopplerStructureElementIter *iter);
|
341
|
+
void poppler_structure_element_iter_free (PopplerStructureElementIter *iter);
|
342
|
+
|
343
|
+
#define POPPLER_TYPE_TEXT_SPAN (poppler_text_span_get_type ())
|
344
|
+
GType poppler_text_span_get_type (void) G_GNUC_CONST;
|
345
|
+
PopplerTextSpan *poppler_text_span_copy (PopplerTextSpan *poppler_text_span);
|
346
|
+
void poppler_text_span_free (PopplerTextSpan *poppler_text_span);
|
347
|
+
gboolean poppler_text_span_is_fixed_width_font (PopplerTextSpan *poppler_text_span);
|
348
|
+
gboolean poppler_text_span_is_serif_font (PopplerTextSpan *poppler_text_span);
|
349
|
+
gboolean poppler_text_span_is_bold_font (PopplerTextSpan *poppler_text_span);
|
350
|
+
void poppler_text_span_get_color (PopplerTextSpan *poppler_text_span,
|
351
|
+
PopplerColor *color);
|
352
|
+
const gchar *poppler_text_span_get_text (PopplerTextSpan *poppler_text_span);
|
353
|
+
const gchar *poppler_text_span_get_font_name (PopplerTextSpan *poppler_text_span);
|
354
|
+
|
355
|
+
G_END_DECLS
|
356
|
+
|
357
|
+
#endif /* !__POPPLER_STRUCTURE_ELEMENT_H__ */
|