Lasso Soft Inc. > Home

[PDF_Doc->DrawText]

Creates "floating" text on a PDF page. Adds the specified text to a location on a page using point coordinates. A required -Left parameter specifies the placement of the left side of the text from the left side of the page in points, and a required -Top parameter specifies the placement of the text from the top of the page in points (decimal value). The color of drawn text can be set using [PDF_Doc->SetColor].

Important: The coordinates of the drawing operations for this tag are inverted from those of most of the PDF graphics tags. This tag measures offsets from the top of the page rather than from the bottom of the page.

  • Syntax
  • Parameters
[PDF_Doc->(DrawText: 'Insert text Here', 
-Font=PDF_Font Variable,
-Leading=Decimal,
-Left=144.0, -Top=480.0]
Required Parameters
-Font Sets the font for the specified text. Requires the name of a [PDF_Font] variable.
-Leading Specifies the amount of space above and below the text in points. Requires a decimal value.
'Text String' Text string to be added. Must be the first parameter specified.
-Left Specifies the placement of the left side of the text from the left side of the page in points.
-Top Specifies the placement of the text from the top of the page in points.
Optional Parameters
-Rotate Specifies the number of degrees to rotate the drawn text. The rotation is counter-clockwise.
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.

Tag Link [PDF_Doc->DrawText] 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