Is this something that would work for you?
newPage('A4Landscape')
BORDER = 20
Text_sample = 'ABCDEFGI'
t = FormattedString()
t.font('Helvetica')
t.fontSize(18)
t.lineHeight(32)
t.tracking(100)
t.append(Text_sample)
textBox(t, (BORDER, BORDER, width()-BORDER*2, height()-BORDER*2))