Top |
GBoxed ├── PopplerAnnotMapping ├── PopplerFormFieldMapping ├── PopplerImageMapping ├── PopplerLinkMapping ├── PopplerPageTransition ├── PopplerPoint ├── PopplerQuadrilateral ├── PopplerRectangle ╰── PopplerTextAttributes GEnum ├── PopplerPageTransitionAlignment ├── PopplerPageTransitionDirection ├── PopplerPageTransitionType ╰── PopplerSelectionStyle GFlags ├── PopplerFindFlags ╰── PopplerPrintFlags GObject ╰── PopplerPage
PopplerAnnotMapping *
poppler_annot_mapping_copy (PopplerAnnotMapping *mapping
);
Creates a copy of mapping
void
poppler_annot_mapping_free (PopplerAnnotMapping *mapping
);
Frees the given PopplerAnnotMapping
PopplerAnnotMapping *
poppler_annot_mapping_new (void
);
Creates a new PopplerAnnotMapping
PopplerFormFieldMapping *
poppler_form_field_mapping_copy (PopplerFormFieldMapping *mapping
);
Creates a copy of mapping
void
poppler_form_field_mapping_free (PopplerFormFieldMapping *mapping
);
Frees the given PopplerFormFieldMapping
PopplerFormFieldMapping *
poppler_form_field_mapping_new (void
);
Creates a new PopplerFormFieldMapping
PopplerImageMapping *
poppler_image_mapping_copy (PopplerImageMapping *mapping
);
Creates a copy of mapping
void
poppler_image_mapping_free (PopplerImageMapping *mapping
);
Frees the given PopplerImageMapping
PopplerImageMapping *
poppler_image_mapping_new (void
);
Creates a new PopplerImageMapping
PopplerLinkMapping *
poppler_link_mapping_copy (PopplerLinkMapping *mapping
);
Creates a copy of mapping
void
poppler_link_mapping_free (PopplerLinkMapping *mapping
);
Frees the given PopplerLinkMapping
PopplerLinkMapping *
poppler_link_mapping_new (void
);
Creates a new PopplerLinkMapping
void poppler_page_add_annot (PopplerPage *page
,PopplerAnnot *annot
);
Adds annotation annot
to page
.
Since: 0.16
GList * poppler_page_find_text (PopplerPage *page
,const char *text
);
Finds text
in page
with the default options (POPPLER_FIND_DEFAULT
) and
returns a GList of rectangles for each occurrence of the text on the page.
The coordinates are in PDF points.
GList * poppler_page_find_text_with_options (PopplerPage *page
,const char *text
,PopplerFindFlags options
);
Finds text
in page
with the given PopplerFindFlags options and
returns a GList of rectangles for each occurrence of the text on the page.
The coordinates are in PDF points.
Since: 0.22
void
poppler_page_free_annot_mapping (GList *list
);
Frees a list of PopplerAnnotMappings allocated by
poppler_page_get_annot_mapping()
. It also unreferences the PopplerAnnots
that each mapping contains, so if you want to keep them around, you need to
reference them with g_object_ref()
.
void
poppler_page_free_form_field_mapping (GList *list
);
Frees a list of PopplerFormFieldMappings allocated by
poppler_page_get_form_field_mapping()
.
void
poppler_page_free_image_mapping (GList *list
);
Frees a list of PopplerImageMappings allocated by
poppler_page_get_image_mapping()
.
void
poppler_page_free_link_mapping (GList *list
);
Frees a list of PopplerLinkMappings allocated by
poppler_page_get_link_mapping()
. It also frees the PopplerActions
that each mapping contains, so if you want to keep them around, you need to
copy them with poppler_action_copy()
.
void
poppler_page_free_text_attributes (GList *list
);
Frees a list of PopplerTextAttributess allocated by
poppler_page_get_text_attributes()
.
Since: 0.18
GList *
poppler_page_get_annot_mapping (PopplerPage *page
);
Returns a list of PopplerAnnotMapping items that map from a location on
page
to a PopplerAnnot. This list must be freed with
poppler_page_free_annot_mapping()
when done.
gboolean poppler_page_get_bounding_box (PopplerPage *page
,PopplerRectangle *rect
);
void poppler_page_get_crop_box (PopplerPage *page
,PopplerRectangle *rect
);
Retrurns the crop box of page
double
poppler_page_get_duration (PopplerPage *page
);
Returns the duration of page
GList *
poppler_page_get_form_field_mapping (PopplerPage *page
);
Returns a list of PopplerFormFieldMapping items that map from a
location on page
to a form field. This list must be freed
with poppler_page_free_form_field_mapping()
when done.
cairo_surface_t * poppler_page_get_image (PopplerPage *page
,gint image_id
);
Returns a cairo surface for the image of the page
GList *
poppler_page_get_image_mapping (PopplerPage *page
);
Returns a list of PopplerImageMapping items that map from a
location on page
to an image of the page. This list must be freed
with poppler_page_free_image_mapping()
when done.
gchar *
poppler_page_get_label (PopplerPage *page
);
Returns the label of page
. Note that page labels
and page indices might not coincide.
Since: 0.16
GList *
poppler_page_get_link_mapping (PopplerPage *page
);
Returns a list of PopplerLinkMapping items that map from a
location on page
to a PopplerAction. This list must be freed
with poppler_page_free_link_mapping()
when done.
cairo_region_t * poppler_page_get_selected_region (PopplerPage *page
,gdouble scale
,PopplerSelectionStyle style
,PopplerRectangle *selection
);
Returns a region containing the area that would be rendered by
poppler_page_render_selection()
.
The returned region must be freed with cairo_region_destroy()
page |
||
scale |
scale specified as pixels per point |
|
style |
||
selection |
start and end point of selection as a rectangle |
Since: 0.16
char * poppler_page_get_selected_text (PopplerPage *page
,PopplerSelectionStyle style
,PopplerRectangle *selection
);
Retrieves the contents of the specified selection
as text.
Since: 0.16
GList * poppler_page_get_selection_region (PopplerPage *page
,gdouble scale
,PopplerSelectionStyle style
,PopplerRectangle *selection
);
poppler_page_get_selection_region
has been deprecated since version 0.16 and should not be used in newly-written code.
Use poppler_page_get_selected_region()
instead.
Returns a region containing the area that would be rendered by
poppler_page_render_selection()
as a GList of
PopplerRectangle. The returned list must be freed with
poppler_page_selection_region_free()
.
void poppler_page_get_size (PopplerPage *page
,double *width
,double *height
);
Gets the size of page
at the current scale and rotation.
char *
poppler_page_get_text (PopplerPage *page
);
Retrieves the text of page
.
Since: 0.16
GList *
poppler_page_get_text_attributes (PopplerPage *page
);
Obtains the attributes of the text as a GList of PopplerTextAttributes.
This list must be freed with poppler_page_free_text_attributes()
when done.
Each list element is a PopplerTextAttributes struct where start_index and
end_index indicates the range of text (as returned by poppler_page_get_text()
)
to which text attributes apply.
See also poppler_page_get_text_attributes_for_area()
Since: 0.18
GList * poppler_page_get_text_attributes_for_area (PopplerPage *page
,PopplerRectangle *area
);
Obtains the attributes of the text in area
as a GList of PopplerTextAttributes.
This list must be freed with poppler_page_free_text_attributes()
when done.
Each list element is a PopplerTextAttributes struct where start_index and
end_index indicates the range of text (as returned by poppler_page_get_text_for_area()
)
to which text attributes apply.
Since: 0.26
char * poppler_page_get_text_for_area (PopplerPage *page
,PopplerRectangle *area
);
Retrieves the text of page
contained in area
.
Since: 0.26
gboolean poppler_page_get_text_layout (PopplerPage *page
,PopplerRectangle **rectangles
,guint *n_rectangles
);
Obtains the layout of the text as a list of PopplerRectangle
This array must be freed with g_free()
when done.
The position in the array represents an offset in the text returned by
poppler_page_get_text()
See also poppler_page_get_text_layout_for_area()
.
page |
||
rectangles |
return location for an array of PopplerRectangle. |
[out][array length=n_rectangles][transfer container] |
n_rectangles |
length of returned array. |
[out] |
Since: 0.16
gboolean poppler_page_get_text_layout_for_area (PopplerPage *page
,PopplerRectangle *area
,PopplerRectangle **rectangles
,guint *n_rectangles
);
Obtains the layout of the text contained in area
as a list of PopplerRectangle
This array must be freed with g_free()
when done.
The position in the array represents an offset in the text returned by
poppler_page_get_text_for_area()
page |
||
area |
||
rectangles |
return location for an array of PopplerRectangle. |
[out][array length=n_rectangles][transfer container] |
n_rectangles |
length of returned array. |
[out] |
Since: 0.26
cairo_surface_t *
poppler_page_get_thumbnail (PopplerPage *page
);
Get the embedded thumbnail for the specified page. If the document
doesn't have an embedded thumbnail for the page, this function
returns NULL
.
the tumbnail as a cairo_surface_t or NULL
if the document
doesn't have a thumbnail for this page.
gboolean poppler_page_get_thumbnail_size (PopplerPage *page
,int *width
,int *height
);
Returns TRUE
if page
has a thumbnail associated with it. It also
fills in width
and height
with the width and height of the
thumbnail. The values of width and height are not changed if no
appropriate thumbnail exists.
PopplerPageTransition *
poppler_page_get_transition (PopplerPage *page
);
Returns the transition effect of page
void poppler_page_remove_annot (PopplerPage *page
,PopplerAnnot *annot
);
Removes annotation annot
from page
Since: 0.22
void poppler_page_render (PopplerPage *page
,cairo_t *cairo
);
Render the page to the given cairo context. This function
is for rendering a page that will be displayed. If you want
to render a page that will be printed use
poppler_page_render_for_printing()
instead. Please see the documentation
for that function for the differences between rendering to the screen and
rendering to a printer.
void poppler_page_render_for_printing (PopplerPage *page
,cairo_t *cairo
);
Render the page to the given cairo context for printing with
POPPLER_PRINT_ALL flags selected. If you want a different set of flags,
use poppler_page_render_for_printing_with_options()
.
The difference between poppler_page_render()
and this function is that some
things get rendered differently between screens and printers:
void poppler_page_render_for_printing_with_options (PopplerPage *page
,cairo_t *cairo
,PopplerPrintFlags options
);
Render the page to the given cairo context for printing with the specified options
See the documentation for poppler_page_render_for_printing()
for the
differences between rendering to the screen and rendering to a printer.
Since: 0.16
void poppler_page_render_selection (PopplerPage *page
,cairo_t *cairo
,PopplerRectangle *selection
,PopplerRectangle *old_selection
,PopplerSelectionStyle style
,PopplerColor *glyph_color
,PopplerColor *background_color
);
Render the selection specified by selection
for page
to
the given cairo context. The selection will be rendered, using
glyph_color
for the glyphs and background_color
for the selection
background.
If non-NULL, old_selection
specifies the selection that is already
rendered to cairo
, in which case this function will (some day)
only render the changed part of the selection.
page |
the PopplerPage for which to render selection |
|
cairo |
cairo context to render to |
|
selection |
start and end point of selection as a rectangle |
|
old_selection |
previous selection |
|
style |
||
glyph_color |
color to use for drawing glyphs |
|
background_color |
color to use for the selection background |
void poppler_page_render_to_ps (PopplerPage *page
,PopplerPSFile *ps_file
);
Render the page on a postscript file
void
poppler_page_selection_region_free (GList *region
);
poppler_page_selection_region_free
has been deprecated since version 0.16 and should not be used in newly-written code.
Frees region
PopplerPageTransition *
poppler_page_transition_copy (PopplerPageTransition *transition
);
Creates a copy of transition
void
poppler_page_transition_free (PopplerPageTransition *transition
);
Frees the given PopplerPageTransition
PopplerPageTransition *
poppler_page_transition_new (void
);
Creates a new PopplerPageTransition
PopplerPoint *
poppler_point_copy (PopplerPoint *point
);
Creates a copy of point
. The copy must be freed with poppler_point_free()
after use.
Since: 0.26
void
poppler_point_free (PopplerPoint *point
);
Frees the memory used by point
Since: 0.26
PopplerPoint *
poppler_point_new (void
);
Creates a new PopplerPoint. It must be freed with poppler_point_free()
after use.
Since: 0.26
PopplerQuadrilateral *
poppler_quadrilateral_copy (PopplerQuadrilateral *quad
);
Creates a copy of quad
. The copy must be freed with poppler_quadrilateral_free()
after use.
Since: 0.26
void
poppler_quadrilateral_free (PopplerQuadrilateral *quad
);
Frees the memory used by quad
Since: 0.26
PopplerQuadrilateral *
poppler_quadrilateral_new (void
);
Creates a new PopplerQuadrilateral. It must be freed with poppler_quadrilateral_free()
after use.
Since: 0.26
PopplerRectangle *
poppler_rectangle_copy (PopplerRectangle *rectangle
);
Creates a copy of rectangle
void
poppler_rectangle_free (PopplerRectangle *rectangle
);
Frees the given PopplerRectangle
PopplerRectangle *
poppler_rectangle_new (void
);
Creates a new PopplerRectangle
PopplerTextAttributes *
poppler_text_attributes_copy (PopplerTextAttributes *text_attrs
);
Creates a copy of text_attrs
Since: 0.18
void
poppler_text_attributes_free (PopplerTextAttributes *text_attrs
);
Frees the given PopplerTextAttributes
Since: 0.18
PopplerTextAttributes *
poppler_text_attributes_new (void
);
Creates a new PopplerTextAttributes
Since: 0.18
typedef struct { PopplerRectangle area; PopplerAnnot *annot; } PopplerAnnotMapping;
A PopplerAnnotMapping structure represents the location
of annot
on the page
PopplerRectangle |
a PopplerRectangle representing an area of the page |
|
PopplerAnnot * |
Flags using while searching text in a page
use default search settings |
||
do case sensitive search |
||
search backwards |
||
search only whole words |
||
do diacritics insensitive search, i.e. ignore accents, umlauts, diaeresis,etc. while matching. This option will be ignored if the search term is not pure ascii. Since 0.73. |
Since: 0.22
typedef struct { PopplerRectangle area; PopplerFormField *field; } PopplerFormFieldMapping;
A PopplerFormFieldMapping structure represents the location
of field
on the page
PopplerRectangle |
a PopplerRectangle representing an area of the page |
|
PopplerFormField * |
typedef struct { PopplerRectangle area; gint image_id; } PopplerImageMapping;
A PopplerImageMapping structure represents the location of an image on the page
PopplerRectangle |
a PopplerRectangle representing an area of the page |
|
gint |
an image identifier |
typedef struct { PopplerRectangle area; PopplerAction *action; } PopplerLinkMapping;
A PopplerLinkMapping structure represents the location
of action
on the page
PopplerRectangle |
a PopplerRectangle representing an area of the page |
|
PopplerAction * |
typedef struct { PopplerPageTransitionType type; PopplerPageTransitionAlignment alignment; PopplerPageTransitionDirection direction; gint duration; gint angle; gdouble scale; gboolean rectangular; gdouble duration_real; } PopplerPageTransition;
A PopplerPageTransition structures describes a visual transition to use when moving between pages during a presentation
the type of transtition |
||
PopplerPageTransitionAlignment |
the dimension in which the transition effect shall occur. Only for POPPLER_PAGE_TRANSITION_SPLIT and POPPLER_PAGE_TRANSITION_BLINDS transition types |
|
PopplerPageTransitionDirection |
the direction of motion for the transition effect. Only for POPPLER_PAGE_TRANSITION_SPLIT, POPPLER_PAGE_TRANSITION_BOX and POPPLER_PAGE_TRANSITION_FLY transition types |
|
gint |
the duration of the transition effect |
|
gint |
the direction in which the specified transition effect shall moves, expressed in degrees counterclockwise starting from a left-to-right direction. Only for POPPLER_PAGE_TRANSITION_WIPE, POPPLER_PAGE_TRANSITION_GLITTER, POPPLER_PAGE_TRANSITION_FLY, POPPLER_PAGE_TRANSITION_COVER, POPPLER_PAGE_TRANSITION_UNCOVER and POPPLER_PAGE_TRANSITION_PUSH transition types |
|
gdouble |
the starting or ending scale at which the changes shall be drawn. Only for POPPLER_PAGE_TRANSITION_FLY transition type |
|
gboolean |
whether the area that will be flown is rectangular and opaque. Only for POPPLER_PAGE_TRANSITION_FLY transition type |
|
gdouble |
Page transition alignment types for POPPLER_PAGE_TRANSITION_SPLIT and POPPLER_PAGE_TRANSITION_BLINDS transition types
Page transition direction types for POPPLER_PAGE_TRANSITION_SPLIT, POPPLER_PAGE_TRANSITION_BOX and POPPLER_PAGE_TRANSITION_FLY transition types
Page transition types
the new page replace the old one |
||
two lines sweep across the screen, revealing the new page |
||
multiple lines, evenly spaced across the screen, synchronously sweep in the same direction to reveal the new page |
||
a rectangular box sweeps inward from the edges of the page or outward from the center revealing the new page |
||
a single line sweeps across the screen from one edge to the other revealing the new page |
||
the old page dissolves gradually to reveal the new one |
||
similar to POPPLER_PAGE_TRANSITION_DISSOLVE, except that the effect sweeps across the page in a wide band moving from one side of the screen to the other |
||
changes are flown out or in to or from a location that is offscreen |
||
the old page slides off the screen while the new page slides in |
||
the new page slides on to the screen covering the old page |
||
the old page slides off the screen uncovering the new page |
||
the new page gradually becomes visible through the old one |
typedef struct { gdouble x; gdouble y; } PopplerPoint;
A PopplerPoint is used to describe a location point on a page
typedef struct { PopplerPoint p1; PopplerPoint p2; PopplerPoint p3; PopplerPoint p4; } PopplerQuadrilateral;
A PopplerQuadrilateral is used to describe rectangle-like polygon with arbitrary inclination on a page.
PopplerPoint |
a PopplerPoint with the first vertex coordinates |
|
PopplerPoint |
a PopplerPoint with the second vertex coordinates |
|
PopplerPoint |
a PopplerPoint with the third vertex coordinates |
|
PopplerPoint |
a PopplerPoint with the fourth vertex coordinates |
Since: 0.26
typedef struct { gdouble x1; gdouble y1; gdouble x2; gdouble y2; } PopplerRectangle;
A PopplerRectangle is used to describe locations on a page and bounding boxes
typedef struct { gchar *font_name; gdouble font_size; gboolean is_underlined; PopplerColor color; gint start_index; gint end_index; } PopplerTextAttributes;
A PopplerTextAttributes is used to describe text attributes of a range of text
gchar * |
font name |
|
gdouble |
font size |
|
gboolean |
if text is underlined |
|
PopplerColor |
a PopplerColor, the foreground color |
|
gint |
start position this text attributes apply |
|
gint |
end position this text attributes apply |
Since: 0.18
“label”
property “label” char *
The label of the page or NULL
. See also poppler_page_get_label()
Owner: PopplerPage
Flags: Read
Default value: NULL