PRIM_PDF - setDisplayMode Method

Sets the display mode options

Member of PRIM_PDF (PRIM_PDF)

Parameters

NameTypeData TypeDescription
Zoom*Input (Optional)Unicode StringZoom level
Layout*Input (Optional)EnumerationPage layout

Details

Sets the display mode options of the page like zoom and layout.

Example

Set the display mode options
Define_Com Class(#PRIM_PDF) Name(#pdf) Unitm(mm) Pageformat(A4) Pageorientation(Portrait)
 
#pdf.start
#pdf.setDisplayMode Zoom('150%') Layout(Continuous)
#pdf.text Text('Hello World!') Left(10) Top(10)
 
#pdf.save Filename('myReport.pdf')
 

Layout Allowed Values

Enum ValueDescription
ContinuousContinuous scroll (default)
SingleSingle page shows one page at the time
TwoLeftTwo column left mode, first page starts on the left
TwoRightPages are laid out in two columns, with the first page on the right


 
 

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020