PdfDevice class
PdfDevice class
Class incapsulating image composing device.
Inheritance: PdfDevice
→
Device
The PdfDevice type exposes the following members:
Constructors
Constructor | Description |
---|---|
init | Creates the new instance. |
init | Creates the new instance with specified media size. |
Properties
Property | Description |
---|---|
creator | Returns or specifies creator of resulting device output. |
size | Gets/sets the device media size. |
is_direct_rgb | Indicates whether device uses direct RGB mode, that is RGB. |
background | Gets/sets the background color. |
opacity | Gets/sets the opacity. |
stroke | Gets/sets the stroke for drawing paths. |
paint | Gets/sets the brush for filling paths. |
opacity_mask | Gets/sets the brush for opacity mask. The mask applies over Paint or Strike. |
char_tm | Returns or specifies current characters transform. |
text_rendering_mode | Returns or specifies current text rendering mode. |
text_stroke_width | Returns or specifies current text stroke width. |
version | Current device version. |
current_page_number | Returns the absolute number of the current page withint the document. |
current_relative_page_number | Returns the number of the current page within the current partititon. |
Methods
Method | Description |
---|---|
rotate | Applies a clockwise rotation about the origin to the current transformation matrix. |
rotate | Rotate the current transformation matrix around a point. |
draw_polyline | Draws a polyline. |
draw_polyline | Draws a polyline. |
draw_polygon | Draws a polygon. |
draw_polygon | Draws a poligone. |
fill_polygon | Fills a poligone. |
fill_polygon | Fills a poligone. |
open_page | Starts a new page with the specifies title. |
open_page | Starts a new page with the specified width and height. |
set_hyperlink_target | Sets the hyperlink with an external URI as its target. |
set_hyperlink_target | Sets the hyperlink with a page number as its target. |
add_outline | Adds an outline item with the last object as its target. |
add_outline | Adds an outline item with the origin point as its target. |
re_new | Sets the devices to the initial state. |
get_property | Gets a value of string property. |
get_property_color | Gets a value of color property. |
get_property_rectangle | Gets a value of rectangle property. |
get_property_margins | Gets a value of margin property. |
get_property_size | Gets a value of size property. |
get_property_int | Gets a value of integer property. |
get_property_double | Gets a value of double property. |
is_property | Gets a value of boolean property. |
create | Creates a new instance of the device based on this device instance. Writes this device graphics state, i.e. creates ApsCanvas instance(s) with corresponding RenderTransform and Clip properties. |
set_transform | Sets the current transformation matrix. |
get_transform | Returns the current transformation matrix. |
transform | Multiplies the current transformation matrix by the specified Matrix. |
translate | Applies the specified translation vector to the current transformation matrix. |
scale | Applies the specified scale vector to the current transformation matrix. |
shear | Applies the specified shear vector to the current transformation matrix. |
init_clip | Initializes clip of the device. |
set_clip | Adds the specified path to the current clip path. |
draw | Draws the specified path. |
fill | Fills the specified path. |
draw_string | Draws a string at the specified position. |
draw_image | Draws an image with assigned transform and background. |
start_document | Starts the document. |
end_document | Accomplishes the document. |
dispose | Disposes this device instance. Finalizes this device instance graphics state, i.e. switches APS composing context to the ApsCanvas of the level higher then this device’s graphics state ApsCanvas. |
reset | Resets the device. |
write_comment | Writes a comment. |
draw_arc | Draws an arc. |
draw_line | Draws a line segment. |
draw_oval | Draws an oval. |
draw_rect | Draws a rectangle. |
draw_round_rect | Draws a round rectangle. |
fill_arc | Fills an arc. |
fill_oval | Fills an oval. |
fill_rect | Fills a rectangle. |
fill_round_rect | Fills a round rectangle. |
init_page_numbers | Initializes numbers of pages to output. |
close_page | Accomplishes the page. |
update_page_parameters | Updates the current page parameters. |
open_partition | Starts a new document partition. |
close_partition | Accomplished the document partition. |
See Also
- module
aspose.page.xps.presentation.pdf
- class
Device
- class
PdfDevice