PDF Viewer Scripting Functions
Scripting Functions
.loadPDFBytes(bytes, name)
Description
- This function will pass in the bytes of a PDF and load them into the PDF Viewer component. Please see Storing Files in a Database for more details
Parameters
string bytes - The bytes of the PDF to be displayed on the component
string name - The name of the PDF
Return
- Nothing
Scope
- Client
.print(showDialog)
Description
- This function will print the PDF.
Parameters
- boolean showDialog - If true, shows the user a print dialog. Default is true [optional]
Return
- Nothing
Scope
- Client
.setZoomFactor(zoom)
Description
- This function will set the current zoom level of the PDF, adjusted to stay within the minimum / maximum zoom range. Will zoom in on center of page.
Parameters
- float zoom - Zoom factor to use. 1.0 is no zoom.
Return
- Nothing
Scope
- Client
Extension Functions
This component does not have extension functions associated with it.