Page
Object Hierarchy:
Description:
Namespace: Poppler
Package: poppler-glib
Content:
Properties:
Static methods:
- public static void free_annot_mapping (List<AnnotMapping> list)
Frees a list of AnnotMappings allocated by get_annot_mapping.
- public static void free_form_field_mapping (List<FormFieldMapping> list)
Frees a list of FormFieldMappings allocated by get_form_field_mapping.
- public static void free_image_mapping (List<ImageMapping> list)
Frees a list of ImageMappings allocated by get_image_mapping.
- public static void free_link_mapping (List<LinkMapping> list)
Frees a list of LinkMappings allocated by get_link_mapping.
- public static void free_text_attributes (List<TextAttributes> list)
Frees a list of TextAttributess allocated by get_text_attributes.
- public static void selection_region_free (List<Rectangle?> region)
Frees
region
Creation methods:
- protected Page ()
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)
- public List<AnnotMapping> get_annot_mapping ()
Returns a list of AnnotMapping items that map from a location on this to a Annot.
- 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 ()
Returns a list of LinkMapping items that map from a location on this to a Action.
- 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)
Returns a region containing the area that would be rendered by render_selection as a List of Rectangle.
- 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 ()
Obtains the attributes of the text as a List of TextAttributes.
- 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)
- public bool get_text_layout_for_area (Rectangle area, out Rectangle[] rectangles)
- 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