Documentation Docs
Documentation Docs

DrawCanvas

An object that describes a drawing area and enables you to draw an image or a piece of text within the area. You can access this object within functions that handle SurveyPDF's onRenderHeader and onRenderFooter events.

View Demo

Events
drawImage method

Draws an image within the drawing area.

Type:
(imageOptions: IDrawImageOptions) => any
Parameters:
imageOptions, type: IDrawImageOptions ,

An IDrawImageOptions object that configures drawing.

Implemented in:
DrawCanvas
drawText method

Draws a piece of text within the drawing area.

Type:
(textOptions: IDrawTextOptions) => void
Parameters:
textOptions, type: IDrawTextOptions ,

An IDrawTextOptions object that configures the drawing.

Implemented in:
DrawCanvas
pageCount property

A total number of pages in the document.

Type:
number readonly
Implemented in:
DrawCanvas
pageNumber property

The number of the page that contains the drawing area. Enumeration starts with 1.

Type:
number readonly
Implemented in:
DrawCanvas
rect property

An object with coordinates of a rectangle that limits the drawing area. This object contain the following fields: xLeft, xRight, yTop, yBot.

Type:
IRect readonly
Implemented in:
DrawCanvas

Copyright © 2024 Devsoft Baltic OÜ. All rights reserved.

Your cookie settings

We use cookies on our site to make your browsing experience more convenient and personal. In some cases, they are essential to making the site work properly. By clicking "Accept All", you consent to the use of all cookies in accordance with our Terms of Use & Privacy Statement. However, you may visit "Cookie settings" to provide a controlled consent.

Your renewal subscription expires soon.

Since the license is perpetual, you will still have permanent access to the product versions released within the first 12 month of the original purchase date.

If you wish to continue receiving technical support from our Help Desk specialists and maintain access to the latest product updates, make sure to renew your subscription by clicking the "Renew" button below.

Your renewal subscription has expired.

Since the license is perpetual, you will still have permanent access to the product versions released within the first 12 month of the original purchase date.

If you wish to continue receiving technical support from our Help Desk specialists and maintain access to the latest product updates, make sure to renew your subscription by clicking the "Renew" button below.