LassoScript Utility
Basics Browse Detail

[PDF_Doc->DrawText]

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

Description

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

[PDF_Doc->(DrawText: 'Insert text Here',
-Font=PDF_Font Variable,
-Leading=Decimal,
-Left=144.0, -Top=480.0]

Parameters

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.

Change Notes

The -Top parameter was changed in LDML 7 to offset from the top of the page as expected rather than the bottom.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.

Related Tags

Category Tags

Substitution
[PDF_Barcode]
[PDF_Color]
[PDF_Font]
[PDF_Image]
[PDF_List]
[PDF_Read]
[PDF_Table]
[PDF_Text]
Process
[PDF_Serve]
Member
[PDF_Barcode->GenerateChecksum]
[PDF_Barcode->GetBarHeight]
[PDF_Barcode->GetBarMultiplier]
[PDF_Barcode->GetBarWidth]
[PDF_Barcode->GetBaseline]
[PDF_Barcode->GetCode]
[PDF_Barcode->GetFont]
[PDF_Barcode->GetSize]
[PDF_Barcode->GetTextAlignment]
[PDF_Barcode->GetTextSize]
[PDF_Barcode->GetType]
[PDF_Barcode->SetBarHeight]
[PDF_Barcode->SetBarMultiplier]
[PDF_Barcode->SetBarWidth]
[PDF_Barcode->SetBaseline]
[PDF_Barcode->SetCode]
[PDF_Barcode->SetFont]
[PDF_Barcode->SetGenerateChecksum]
[PDF_Barcode->SetShowChecksum]
[PDF_Barcode->SetTextAlignment]
[PDF_Barcode->SetTextSize]
[PDF_Barcode->ShowChecksum]
[PDF_Barcode->ShowCode39StartStop]
[PDF_Barcode->ShowEANGuardBars]
[PDF_Font->GetColor]
[PDF_Font->GetEncoding]
[PDF_Font->GetFace]
[PDF_Font->GetFullFontName]
[PDF_Font->GetPSFontName]
[PDF_Font->GetSize]
[PDF_Font->GetSupportedEncodings]
[PDF_Font->IsTrueType]
[PDF_Font->SetColor]
[PDF_Font->SetEncoding]
[PDF_Font->SetFace]
[PDF_Font->SetSize]
[PDF_Font->SetUnderline]
[PDF_Font->TextWidth]
[PDF_List->Add]
[PDF_Read->AddJavaScript]
[PDF_Read->ExportFDF]
[PDF_Read->FieldNames]
[PDF_Read->FieldType]
[PDF_Read->FieldValue]
[PDF_Read->GetHeaders]
[PDF_Read->ImportFDF]
[PDF_Read->JavaScript]
[PDF_Read->PageCount]
[PDF_Read->PageSize]
[PDF_Read->Save]
[PDF_Read->SetFieldValue]
[PDF_Read->SetPageRange]
[PDF_Table->Add]
[PDF_Table->GetAbsWidth]
[PDF_Table->GetAlignment]
[PDF_Table->GetBorderColor]
[PDF_Table->GetBorderWidth]
[PDF_Table->GetColumnCount]
[PDF_Table->GetPadding]
[PDF_Table->GetRowCount]
[PDF_Table->GetSpacing]
[PDF_Table->Insert]
[PDF_Table->Remove]
[PDF_Table->SetAlignment]
[PDF_Table->SetBorderColor]
[PDF_Table->SetBorderWidth]
[PDF_Table->SetPadding]
[PDF_Table->SetSpacing]
[PDF_Text->Add]