GraffitiSuite Docs
Docs
Graffitipdfviewer
Loading document parsing libraries...
# GraffitiPDFViewer Class Inherits GraffitiWebUIControl ## About GraffitiPDFViewer is a purpose-built PDF Viewer for your Xojo applications. Using the industry standard PDF.js, loading and displaying PDF files is a breeze. ## Compatibility ### Framework API Version | 1.0 | 2.0 | | :---: | :---: | | True | True | ### Web | 32-Bit | 64-Bit | | :---: | :---: | | True | True | ## Enumerations | Name | Value | Description | | --- | :---: | --- | | DisplayModes | Vertical <br > Horizontal | (None) | ## Event Definitions | Name | Parameters | Return Type | Description | | --- | :---: | :---: | --- | | Error | code as Integer <br> name as String <br> message as String | (None) | (None) | | Open | (None) | (None) | (None) | | PageChanged | (None) | (None) | (None) | | PageImageReceived | index as Integer <br> page as Picture | (None) | (None) | | Rendered | (None) | (None) | (None) | | ScrollChanged | (None) | (None) | Raised when either the current scroll position or the scroll maximum have changed value. | | Shown | (None) | (None) | (None) | | ZoomChanged | (None) | (None) | (None) | ## Methods | Name | Parameters | Return Type | Description | | --- | :---: | :---: | --- | | CloseDocument | (None) | (None) | (None) | | Download | (None) | (None) | (None) | | Find | text as String | (None) | (None) | | FitHeight | (None) | (None) | (None) | | FitPage | (None) | (None) | (None) | | FitWidth | (None) | (None) | (None) | | OpenDocument | file as GraffitiWebFile <br> password as String = "" | (None) | (None) | | OpenDocument | url as String <br> password as String = "" | (None) | (None) | | OpenDocument | file as WebFile <br> password as String = "" | (None) | (None) | | PageIndex | (None) | Integer | (None) | | PageLastIndex | (None) | Integer | (None) | | Print | (None) | (None) | (None) | | RequestPageImage | index as Integer | (None) | (None) | | Rotate | value as Integer | (None) | (None) | | ScrollToPage | index as Integer | (None) | (None) | | Zoom | (None) | Double | (None) | | Zoom | assigns value as Double | (None) | (None) | | ZoomIn | (None) | (None) | (None) | | ZoomOut | (None) | (None) | (None) | ## Properties | Name | Type | Default Value | Description | | --- | :---: | :---: | --- | | DisplayMode | DisplayModes | (None) | (None) | | Enabled | Boolean | (None) | (None) | | ScrollMaximumY | Double | (None) | The maximum vertical scroll distance. | | ScrollPositionY | Double | (None) | The current vertical scroll position. | | SidebarVisible | Boolean | (None) | (None) | | TextDisplayHorizontal | String | (None) | (None) | | TextDisplayVertical | String | (None) | (None) | | TextDownload | String | (None) | (None) | | TextFitHeight | String | (None) | (None) | | TextFitPage | String | (None) | (None) | | TextFitWidth | String | (None) | (None) | | TextPrint | String | (None) | (None) | | TextRotateClockwise | String | (None) | (None) | | TextRotateCounter | String | (None) | (None) | | ToolbarVisible | Boolean | (None) | (None) | | TooltipFirstPage | String | (None) | (None) | | TooltipGoToPage | String | (None) | (None) | | TooltipLastPage | String | (None) | (None) | | TooltipNextPage | String | (None) | (None) | | TooltipPreviousPage | String | (None) | (None) | | TooltipToggleSidebar | String | (None) | (None) | | TooltipZoomIn | String | (None) | (None) | | TooltipZoomOut | String | (None) | (None) |