PRIM_PDF - setFontSize Method

Sets font size for upcoming text elements

Member of PRIM_PDF (PRIM_PDF)

Parameters

NameTypeData TypeDescription
Size*InputIntegerFont size in points

Details

Sets font size for upcoming text elements.

Example

Set the font size
Define_Com Class(#PRIM_PDF) Name(#pdf) Unitm(mm) Pageformat(A4) Pageorientation(Portrait)
 
#pdf.start
 
#pdf.setFontSize Size(12)
#pdf.text Text('Hello world!') Left(10) Top(10)
 
#pdf.save Filename('myReport.pdf')
 

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020