PRIM_PDF - addPage Method

Adds and transfers focus to new page in PDF document

Member of PRIM_PDF (PRIM_PDF)

Details

Adds a page to the PDF document and transfers focus to the new page.

Example

Adding a page
Define_Com Class(#PRIM_PDF) Name(#pdf) Unitm(mm) Pageformat(A4) Pageorientation(Portrait)
 
#pdf.start
#pdf.text Text('On first page') Left(10) Top(10)
#pdf.addPage
#pdf.text Text('On second page') Left(10) Top(10)
 
#pdf.save Filename('myReport.pdf')

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020