Page
Object Hierarchy:
Description:
[
CCode ( type_id =
"poppler_page_get_type ()" ) ]
public class Page :
Object
A Document page.
Since 25.06 this type supports g_autoptr
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)
- 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