Click or drag to resize

Document RenderToSize Method

Draws a document page at the specified size into the System.Drawing.Graphics object.

Namespace: Spire.Doc
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public float RenderToSize(
	int pageIndex,
	Graphics graphics,
	float x,
	float y,
	float width,
	float height
)

Parameters

pageIndex
Type: System Int32
The 0-based page index.
graphics
Type: System.Drawing Graphics
The object where to render to.
x
Type: System Single
The X coordinate (in world units) of the top left corner of the rendered page.
y
Type: System Single
The Y coordinate (in world units) of the top left corner of the rendered page.
width
Type: System Single
The maximum width (in world units) that can be occupied by the rendered page.
height
Type: System Single
The maximum height (in world units) that can be occupied by the rendered page.

Return Value

Type: Single
See Also