PdfDevice class
PdfDevice class
This class encapsulates rendering of document to PDF.
Inheritance: PdfDevice
→
Device
The PdfDevice type exposes the following members:
Constructors
Constructor | Description |
---|---|
init | Initializes new instance of PdfDevice with output stream. |
init | Initializes new instance of PdfDevice with output stream and specified size of a page. |
Properties
Property | Description |
---|---|
creator | Returns or specifies creator of resulting device output. |
size | Returns or specifies a size of the page. |
is_direct_rgb | Indicates whether device uses direct RGB mode, that is RGB. |
background | Returns or specifies current background of the page. |
opacity | Returns or specifies current opacity. |
stroke | Returns or specifies current stroke. |
paint | Returns or specifies current paint. |
opacity_mask | Returns or specifies current opacity mask. |
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 | “Version” property key. |
current_page_number | Current page number. |
output_stream | Specifies or returns an output stream. |
VERSION | “Version” property key. |
VERSION5 | “Version of Adobe Acrobat Reader” property value. |
TRANSPARENT | “Transparent” property key. |
BACKGROUND | Returns or specifies current background of the page. |
BACKGROUND_COLOR | “Background color” property key. |
PAGE_SIZE | “Page size” property key. |
PAGE_MARGINS | “Page margins” property key. |
ORIENTATION | “Orientation” property key. |
FIT_TO_PAGE | “Fit content to page” property key. |
EMBED_FONTS | “Embed font in document” property key. |
EMBED_FONTS_AS | “What font type is used for embedding” property key. |
COMPRESS | “Compress” property key. |
WRITE_IMAGES_AS | “Format of images” property key. |
AUTHOR | “Author” property value. |
TITLE | “Title” property value. |
SUBJECT | “Subject” property value. |
KEYWORDS | “Keywords” property value. |
EMIT_WARNINGS | “Emit warnings” property value. |
EMIT_ERRORS | “Emit errors” property value. |
Methods
Method | Description |
---|---|
rotate | Rotate the current transform over the Z-axis. Calls writeTransform(Transform). Rotating with a positive angle theta rotates points on the positive x axis toward the positive y axis. |
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 | Makes necessary preparation of the device before page rendering. |
open_page | Makes necessary preparation of the device before each page rendering. |
re_new | Reset device to initial state for whole document. Used for reseting output stream. |
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 copy of this device. |
set_transform | Specifies the current transform. Since most output formats do not implement this functionality, the inverse transform of the currentTransform is calculated and multiplied by the transform to be set.The result is then forwarded by a call to writeTransform(Transform). |
get_transform | Gets current transform. |
transform | Transforms the current transformation matrix. Calls writeTransform(Transform) |
translate | Translates the current transformation matrix. Calls writeTransform(Transform). |
scale | Scales the current transformation matrix. Calls writeTransform(Transform). |
shear | Shears the current transformation matrix. Calls writeTransform(Transform). |
init_clip | Initializes clip of the device. |
set_clip | Specifies the clip of the device. |
draw | Draws a path. |
fill | Fills a path. |
draw_string | Draws a string at given point. |
draw_image | Draws an image with assigned transform and background. |
start_document | Makes necessary preparation of device before start rendering of document. |
end_document | Makes necessary preparation of device after the document has been rendered. |
dispose | Disposes the graphics context. If on creation restoreOnDispose was true, writeGraphicsRestore() will be called. |
reset | If page device parameters will be set this method allows to return writing stream back the begining of page. |
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 | Makes necessary preparation of the device after page has been rendered. |
update_page_parameters | Updates page parameters from other multi-paged device. |
See Also
- module
aspose.page.eps.device
- class
Device
- class
PdfDevice