PRIM_PDF - line Method

Draws a line on the current page

Member of PRIM_PDF (PRIM_PDF)

Parameters

NameTypeData TypeDescription
Left*InputFloatStarting X coordinate against left edge of the page
Top*InputFloatStarting Y coordinate against upper edge of the page
Right*InputFloatEnding X coordinate against left edge of the page
Bottom*InputFloatEnding Y coordinate against upper edge of the page

Details

Draws a line on the current page of the PDF document.

Example

Draw a line.
Define_Com Class(#PRIM_PDF) Name(#pdf) Unitm(mm) Pageformat(A4) Pageorientation(Portrait)
 
#pdf.start
 
#pdf.setDrawColor Color(Theme500)
#pdf.line Left(10) Top(10) Bottom(10) Right(180)
 
#pdf.save Filename('myReport.pdf')
 

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020