pdfJS Viewer component
About
pdfJS Viewer component is a PDF viewer based on the viewer provided by the PDF JS project (available here: https://mozilla.github.io/pdf.js/).
This viewer allows to open a PDF document in the entire screen, or in a frame of your screen. All PDF documents must be include in the Resources folder of a module.
How to use pdfJS Viewer?
Step 1
Include the desired PDF document in Resources folder of a module (it's not mandatory to include in this module)
Step 2
Set deploy action of PDF document to "Deploy to Target Directory", to obtain the runtime path of PDF document
Step 3
To open the PDF document in entire screen
Drag-and-drop the FullViewer block in an empty screen (without any struture) and redirect to this screen
To open the PDF document in a frame of the screen:
Drag-and-drop the ResizeableViewer block in a container with the desired dimensions for your PDF documentation
Step 4
Set input parameters values, consulting details parameters. ViewerScreen and ResizeableViewer block have the same inputs parameters.
Discover the result
Click here to see your activities