Skip to main content
Version: 8.1

Perspective - PDF Viewer

Component Palette Icon:

Description​

The PDF Viewer component displays a PDF that's hosted on a web server by providing a URL to the source property. A simple approach is to create either a File Resource or Mounted Folder within Web Dev, and set the source on the component to the resource's endpoint.

Properties​

Most Properties have binding options. For more information on Bindings, see Types of Bindings in Perspective. This section only documents the Props Category of properties. The other Categories are described on the Perspective Component Properties page.

NameDescriptionProperty Type
showPageNumberIf true, the current page number and page count will be shown at the bottom of the component.value: boolean
sourcePath to the .pdf file to be displayed. Expects a URL to a PDF hosted on a web server.value: string
styleSets a style for this component. Full menu of style options is available for text, background, margin and padding, border, shape and miscellaneous. You can also specify a style class.object
pageThe current page being displayed.value: numeric
pageCountThe number of pages the pdf contains. Read only.value: numeric

Scripting​

See the Perspective - PDF Viewer Scripting page for the full list of scripting functions available for this component.