Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
titleGeneral

Component Palette Icon:




Scroll html ignore
Iulink
URLhttps://www.inductiveuniversity.com/videos/perspective-pdf-viewer/8.0
NamePDF Viewer


Panel
borderStylesolid
titleDescription

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. 

Panel
titleProperties
Perspective_property


NameDescriptionProperty Type
sourcePath to the .pdf file to be displayed. Expects a URL to a PDF hosted on a web server.value: string
pageThe current page being displayed.value: numeric
pageCountThe number of pages the pdf contains. Read only.value: numeric
showPageNumberIf true, the current page number and page count will be shown at the bottom of the component.value: boolean
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
Info
iconfalse
titlePerspective Component Events

The Perspective Event Types Reference page describes all the possible component event types for Perspective components. Not all component events support each Perspective component. The Component Events and Actions page shows how to configure events and actions on a Perspective component. Component scripting is handled separately and can be accessed from the Component menubar or by right clicking on the component.

Panel
titleScripting Functions
New_in
Version8.0.3


Expand
title.reload()
  • Description

This function will reload the PDF in the PDF Viewer component.

  • Parameters

string name - The name of the PDF

  •  Return

Nothing