Page
Object Hierarchy:
Description:
[ CCode ( type_id = "poppler_page_get_type ()" ) ]
public class Page : Object
Content:
Properties:
Static methods:
Creation methods:
Methods:
- public void add_annot (Annot annot)
Adds annotation annot
to this
.
- public List<Rectangle?> find_text (string text)
Finds text
in this with
the default options (%POPPLER_FIND_DEFAULT) and returns a List of rectangles for each occurrence of the
text on the page.
- public List<Rectangle?> find_text_with_options (string text, FindFlags options)
Finds text
in this with
the given FindFlags options and returns a List of
rectangles for each occurrence of the text on the page.
- public List<AnnotMapping> get_annot_mapping ()
- public bool get_bounding_box (out Rectangle rect)
- public Rectangle get_crop_box ()
Retrurns the crop box of this
- public double get_duration ()
Returns the duration of this
- public List<FormFieldMapping> get_form_field_mapping ()
Returns a list of
FormFieldMapping items that map from a location on
this to a form field.
- public Surface get_image (int image_id)
Returns a cairo surface for the image of the
this
- public List<ImageMapping> get_image_mapping ()
Returns a list of
ImageMapping items that map from a location on this to an image of the page.
- public int get_index ()
Returns the index of this
- public string get_label ()
Returns the label of this.
- public List<LinkMapping> get_link_mapping ()
- public Region get_selected_region (double scale, SelectionStyle style, Rectangle selection)
Returns a region containing the area that would be rendered by
render_selection.
- public string get_selected_text (SelectionStyle style, Rectangle selection)
Retrieves the contents of the specified selection
as
text.
- public List<Rectangle?> get_selection_region (double scale, SelectionStyle style, Rectangle selection)
- public void get_size (out double width, out double height)
Gets the size of this at the current
scale and rotation.
- public string get_text ()
Retrieves the text of this.
- public List<TextAttributes> get_text_attributes ()
- public List<TextAttributes> get_text_attributes_for_area (Rectangle area)
Obtains the attributes of the text in area
as a
List of TextAttributes.
- public string get_text_for_area (Rectangle area)
Retrieves the text of this contained
in area
.
- public bool get_text_layout (out Rectangle[] rectangles)
Obtains the layout of the text as a list of
Rectangle This array must be freed with g_free when
done.
- public bool get_text_layout_for_area (Rectangle area, out Rectangle[] rectangles)
Obtains the layout of the text contained in area
as a
list of Rectangle This array must be freed with g_free
when done.
- public Surface get_thumbnail ()
Get the embedded thumbnail for the specified page.
- public bool get_thumbnail_size (out int width, out int height)
Returns true
if this
has a thumbnail associated with it.
- public PageTransition get_transition ()
Returns the transition effect of this
- public void remove_annot (Annot annot)
Removes annotation annot
from
this
- public void render (Context cairo)
Render the page to the given cairo context.
- public void render_for_printing (Context cairo)
Render the page to the given cairo context for printing with
ALL flags selected.
- public void render_for_printing_with_options (Context cairo, PrintFlags options)
Render the page to the given cairo context for printing with the
specified options
- public void render_selection (Context cairo, Rectangle selection, Rectangle old_selection, SelectionStyle style, Color glyph_color, Color background_color)
Render the selection specified by selection
for
this to the given cairo context.
- public void render_to_ps (PSFile ps_file)
Render the page on a postscript file
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref