Handle.renderDocument

Renders the whole SVG document fitted to a viewport.

The @viewport gives the position and size at which the whole SVG document will be rendered.

The @cr must be in a #CAIRO_STATUS_SUCCESS state, or this function will not render anything, and instead will return an error.

API ordering: This function must be called on a fully-loaded @handle. See the section <ulink url="#API-ordering">API ordering</ulink> for details.

Panics: this function will panic if the @handle is not fully-loaded.

class Handle
bool
renderDocument

Parameters

cr Context

A Cairo context

viewport RsvgRectangle*

Viewport size at which the whole SVG would be fitted.

Throws

GException on failure.

Meta

Since

2.46