Displaying PDF

You can open a PDF file, change pages and zoom in and out.

Example Operation

Setting Workflow

  1. Add Variables
  2. Set up Parts
  3. Set up Scripts

Add Variables

Project Explorer : [Variables] ➞ [All Variables]

Add the below variable(s).

Variables property:

[Name] [Data Type] [Source] [Initial Value]

Var1

[STRING]

[Internal] Manual1.pdf

Set up Parts

Project Explorer : [Screen Design] ➞ [Screens] ➞ [Screen1]

Drag and drop the following objects from the [Tool Chest] to the screen.

PDF Viewer object (Name: PdfViewer1)

Tab Sub Tab Property Value
[Function] [Basic] [Save in] [USB Storage]
[Directory Path] /Manual
[File Name] [Variable] [Name]: Var1
[Detail] [Auto Open]
[PDF Operations]

Note: Store the PDF files (Manual1.pdf and Manual2.pdf) in the USB folder specified in the [Directory Path] property: “/Manual”.

String Display object (Name: StringDisplay1)

Tab Sub Tab Property Value
[Function] [Basic] [Current Value] [Variable] [Name]: Var1
[Display Characters] 15
[Enable Input Mode]

Switch object (Name: Switch1): Open File

Default value.

Set up Scripts

Project Explorer : [Screen Design] ➞ [Screens] ➞ [Screen1]

Set the following script on the object.

From the [Tool Chest] drag and drop the script to the Script editor.

Switch object (Name: Switch1)

Legend Block

1

[Triggers] [Touch] [Touch]

2

[Operations] ➞ [Screen/GraphicObject] ➞ [PDF Viewer]

3

[Values] [Screen Object]