PdfDevice class

PdfDevice class

Represents rendering to a pdf document.

Inheritance: PdfDeviceDevice

The PdfDevice type exposes the following members:

Constructors

ConstructorDescription
initInitializes a new instance of the PdfDevice class.
initInitializes a new instance of the PdfDevice class by rendering options and stream provider.
initInitializes a new instance of the PdfDevice class.
initInitializes a new instance of the PdfDevice class by rendering options and output file name.
initInitializes a new instance of the PdfDevice class.
initInitializes a new instance of the PdfDevice class by rendering options and output stream.

Properties

PropertyDescription
options
graphic_context

Methods

MethodDescription
save_graphic_contextPushes a copy of the entire graphics context onto the stack.
restore_graphic_contextRestores the entire graphics context to its former value by popping it from the stack.
add_rectAppends a rectangle to the current path as a complete subpath.
begin_documentBegins rendering of the document.
begin_elementBegins rendering of the element.
begin_pageBegins rendering of the new page.
clipModifies the current clipping path by intersecting it with the current path, using the FillMode rule to determine the region to fill.
This method terminates current path.
close_pathCloses the current subpath by appending a straight line segment from the current point to the starting point of the subpath.
If the current subpath is already closed, “ClosePath” does nothing.
This operator terminates the current subpath. Appending another segment to the current path begins a new subpath,
even if the new segment begins at the endpoint reached by the “ClosePath” method.
cubic_bezier_toAppends a cubic Bézier curve to the current path. The curve extends from the current point to the point pt2,
using pt1 and pt2 as the Bézier control points. The new current point is pt3.
draw_imageDraws the specified image.
end_documentEnds rendering of the document.
flushFlushes all data to output stream.
end_elementEnds rendering of the element.
end_pageEnds rendering of the current page.
fillFills the entire region enclosed by the current path.
If the path consists of several disconnected subpaths, it fills the insides of all subpaths,
considered together.
This method terminates current path.
fill_textFills the specified text string at the specified location.
line_toAppends a straight line segment from the current point to the point (pt). The new current point is pt.
move_toBegins a new subpath by moving the current point to coordinates of the parameter pt, omitting any connecting line segment.
If the previous path construction method in the current path was also “MoveTo”, the new “MoveTo” overrides it;
no vestige of the previous “MoveTo” operation remains in the path.
strokeStrokes a line along the current path. The stroked line follows each straight or curved segment in the path,
centered on the segment with sides parallel to it. Each of the path’s subpaths is treated separately.
This method terminates current path.
stroke_and_fillStrokes and fill current path.
This method terminates current path.
stroke_textStrokes the specified text string at the specified location.

See Also