Documentation Docs
Documentation Docs

PdfBrick

An object that describes a PDF brick—a simple element with specified content, size, and location. Bricks are fundamental elements used to construct a PDF document.

You can access PdfBrick objects within functions that handle SurveyPDF's onRenderQuestion, onRenderPanel, and onRenderPage events.

View Demo

Methods
Events
fontSize property

Font size in points.

Default value: 14 (inherited from the parent PDF document)

Type:
number readonly
Implemented in:
PdfBrick
height property

The brick's height in pixels.

Type:
number readonly
Implemented in:
PdfBrick
textColor property

The color of text within the brick.

Default value: "#404040"

Type:
string readonly
Implemented in:
PdfBrick
unfold method

Allows you to get a flat array of nested PDF bricks.

Type:
() => {}
Return Value:

A flat array of nested PDF bricks.

Implemented in:
PdfBrick
width property

The brick's width in pixels.

Type:
number readonly
Implemented in:
PdfBrick
xLeft property

An X-coordinate for the left brick edge.

Type:
number writable
Implemented in:
PdfBrick
xRight property

An X-coordinate for the right brick edge.

Type:
number writable
Implemented in:
PdfBrick
yBot property

A Y-coordinate for the bottom brick edge.

Type:
number writable
Implemented in:
PdfBrick
yTop property

A Y-coordinate for the top brick edge.

Type:
number writable
Implemented in:
PdfBrick

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

Your cookie settings

We use cookies to make your browsing experience more convenient and personal. Some cookies are essential, while others help us analyse traffic. Your personal data and cookies may be used for ad personalization. By clicking “Accept All”, you consent to the use of all cookies as described in our Terms of Use and Privacy Statement. You can manage your preferences in “Cookie settings.”

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.