Step 1:
Include the desired PDF document in Resources folder of a module (not mandatory to include in Resources folder of your pdfJS Viewer consumer).
Step 2:
Set deploy action of PDF document to "Deploy to Target Directory", to obtain the runtime path of PDF document. This Runtime path will be used to complete the URL parameter.
Step 3:
At this moment, you have 2 ways to show a PDF document:
1. Show document in entire screen Redirect (through button, link, etc...) to ViewerScreen of pdfJS Viewer component.
2. Show document in a frame of the screen Drag-and-drop the ResizeableViewer block in a container with desired dimensions for the frame. The PDF document will fit the frame.
Step 4:
Set input parameters values, using parameters descriptions to help you fill input variables.
URL:
Full URL path of PDF document to be opened. You must include your PDF document in Resources folder, and set deploy action to "Deploy to Target Directory". Use the Runtime Path to complete your URL.
(Usually your URL should be similar to this: https://your_domain.com/module_name/pdf_name.pdf).
HostsList:
Host that contains the PDF document. Usually, you must set the domain's document. (e.g: https://your_domain.com)
HidePresentationMode:
Hide presentation mode option. Presentation mode allows to set opened PDF document in full screen.
HideOpenFile:
Hide open file option. Open file allows to open a new PDF document, using the opened PDF viewer.
HidePrint:
Hide print option. Print option allows to print opened PDF document.
HideDownload:
Hide download option. Download option allows to download opened PDF document into local storage.
HideBookmark:
Hide bookmark option. Bookmark option allows to navigate through PDF document.