Tag Link | [PDF_Doc->Rect] | Category | |
---|---|---|---|
Type | Member | Source Available | Yes |
Support | Preferred | Version | 6.0 |
Change | Updated | Data Source | Any |
Output Type | None | Security | File |
Implementation | LJAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0 |
[PDF_Doc->Rect] draws a rectangle in a page within a [PDF_Doc] variable. Requires a string of points which specify the lower left corner of the rectangle followed by the width and height in points (X, Y, Width, Height). The
An optional fifth parameter creates a rectangle with rounded corners. The parameter should specify the radius of the rounded corners.
[$PDF_Doc->(SetColor: 'stroke', 'RGB', 0.0, 0.0, 0.5)]
[$PDF_Doc->(Rect: 90, 90, 20, 30)]
[$PDF_Doc->(SetColor: 'stroke', 'RGB', 0.0, 0.0, 0.5)]
[$PDF_Doc->(SetColor: 'fill', 'RGB', 0.0, .5, 0.0)]
[$PDF_Doc->(Rect: 90, 90, 20, 30,
[$PDF_Doc->(Rect: 90, 90, 20, 30, 5)]
[$PDF_Doc->(Rect: 90, 90, 20, 30, 5,
Required Parameters | |
---|---|
X, Y, W, H | String of points which specify the lower left corner of the rectangle followed by the width and height in points (X, Y, Width, Height). |
X, Y, W, H, R | String of points which specify the lower left corner of the rounded corner rectangle followed by the width and height in points and the radius for the rounded corners. (X, Y, Width, Height, Radius). |
Optional Parameters | |
-Fill | Specifies that the rectangle should be filled with color. |
The
The option to created rounded corners was added in Lasso 8.5.5.
See the Lasso 8 Language Guide for examples of how to use this tag.