PRIM_PDF - setDisplayMode Method

Sets the display mode options

Member of PRIM_PDF (PRIM_PDF)

Parameters

Name

Type

Data Type

Description

Zoom

*Input (Optional)

Unicode String

Zoom level

Layout

*Input (Optional)

Enumeration

Page 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 Value

Description

Continuous

Continuous scroll (default)

Single

Single page shows one page at the time

TwoLeft

Two column left mode, first page starts on the left

TwoRight

Pages are laid out in two columns, with the first page on the right


See also

All Component Classes

Technical Reference

  • No labels