Lasso Soft Inc. > Home

[PDF_Doc->Rect]

[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 -Fill parameter can be optionally specified in order to fill the rectangle with color.

An optional fifth parameter creates a rectangle with rounded corners. The parameter should specify the radius of the rounded corners.

  • Syntax
  • Parameters
[$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, -Fill)]

[$PDF_Doc->(Rect: 90, 90, 20, 30, 5)]
[$PDF_Doc->(Rect: 90, 90, 20, 30, 5, -Fill)]

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

See the PDF chapter in the Lasso 8 Language Guide for examples of how to use this tag. Many of the PDF examples require lengthy descriptions and the use of several related tags and are better suited to presentation in the Language Guide. This tag is documented on page 589.

Tag Link [PDF_Doc->Rect] Category PDF
Type Member Data Source Any
Support Preferred Version 6.0
Output Type None Security File
Implementation LJAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft