XpsDevice class

XpsDevice class

Implements the interface for outputting text and graphic content to XPS document.

Inheritance: XpsDeviceDevice

The XpsDevice type exposes the following members:

Constructors

NameDescription
XpsDevice()Creates a new instance.
The output file will be written to the output working
directory taking the job name as a file name.
XpsDevice(stream)Initializes a new instance of the XpsDevice class

Properties

NameDescription
page_countGets the number of pages.
is_readyShows if device is ready for output.
destination_nameGets destination name: output file name or device description.
strokeGets/sets the current stroke.
fillGets/sets the current fill.
stroke_opacityGets/sets the current stroke opacity.
fill_opacityGets/sets the current fill opacity.

Methods

NameDescription
initialize()Initializes the device.
create()Creates a copy of this device.
dispose()Disposes this device instance. Finalizes this device instance graphics state,
i.e. switches composing context to the level higher then this device’s graphics state.
start_document()Starts the whole document.
end_document()Finalizes the whole document.
start_page(width, height)Starts a new page.
end_page()Finalizes a page.
add_hyperlink(active_rect, border, target_uri)Set the hyperlink with a URI as its target.
set_transform(matrix)Sets the current coordinate space transformation.
set_clip(path)Sets the current clip path.
draw_string(str, origin_x, origin_y, char_infos)Draws a text string.
draw_path(path)Draws a path.
fill_path(path)Fill a path.
show_image(origin, size, image_data)Shows a raster image.
add_bookmark(name, position)Adds the bookmark identified by the name.
start_fragment()Starts a fragment to rasterize.
end_fragment()Ends a fragment to rasterize.

See Also