Top  | Previous | Next

PDF Viewer

The PDF Viewer showing a schematic<br>
in a maintenance manual

The PDF Viewer showing a schematic
in a maintenance manual

Description

The PDF Viewer component displays a PDF that exists as a file in some accessible filesystem, or as a URL. Note that this component is simply for viewing existing PDFs. To create dynamic reports, use the Report Viewer component.

 

This component is typically used in conjunction with the File Explorer component, in order to create a PDF viewing window. See the File Explorer's documentation for instructions on how to put these two components together.

 

sign_warning Warning. This component is not as high-quality as Adobe Reader. This component can only be guaranteed to correctly display reports generated by the Report Viewer. In practice, it is able to view many PDFs, but it does have trouble with some, especially PDFs created by AutoCAD. If this is a problem, use the free ActiveX module to embed an Adobe Reader control within your window. Of course, this will make your clients Windows-only.

Properties

Appearance

Font

Font of text of this component

Scripting name

font

Data type

Font

Foreground Color

The foreground color of the component.

Scripting name

foreground

Data type

Color

Background Color

The background color of the component.

Scripting name

background

Data type

Color

Zoom Factor

Sets the zoom factor for the report viewer

Scripting name

zoomFactor

Data type

float

Flags

bindable

Behavior

Print Mode

Sets the printing mode. Vector is fast and high-quality for printers that support it, but Raster mode can help the spool size with older printers.

Scripting name

printingMode

Data type

int

Flags

expert

Values

0

Vector

1

Raster

Raster DPI

If the mode is raster, this is the DPI that will be used.

Scripting name

printingDPI

Data type

int

Flags

expert

Common

Name

The name of this component.

Scripting name

name

Data type

String

Flags

bindable

Enabled

If disabled, a component cannot be used.

Scripting name

enabled

Data type

boolean

Visible

If disabled, the component will be hidden.

Scripting name

visible

Data type

boolean

Border

The border surrounding this component. NOTE that the border is unaffected by rotation.

Scripting name

border

Data type

Border

Mouseover Text

The text that is displayed in the tooltip which pops up on mouseover of this component.

Scripting name

toolTipText

Data type

String

Opaque

If false, backgrounds are not drawn. If true, backgrounds are drawn.

Scripting name

opaque

Data type

boolean

Data

Filename

The filename (or URL) of the PDF to view.

Scripting name

filename

Data type

String

Flags

bindable

Scripting

Events

The following event sets are fired by this component. See Component Event Handlers to learn more.

mouse
mouseMotion
propertyChange

 

Scripting Functions

This component has no special scripting functions.