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 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 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.

Type:
IRect readonly
Implemented in:
DrawCanvas

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

Why we use cookies.

This site uses cookies to make your browsing experience more convenient and personal. Cookies store useful information on your computer to help us improve the efficiency and relevance of our site for you. In some cases, they are essential to making the site work properly. By accessing this site, you consent to the use of cookies.

For more information, refer to DevSoft Baltic’ privacy policy and cookie policy.

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.