pdfjs-viewer
Web icon

pdfJS Viewer

Stable version 0.2.4 (Compatible with OutSystems 11)
Other versions available for 10
Uploaded
 on 01 June 2021
 by 
4.8
 (12 ratings)
We picked this asset for you. Give it a try.
pdfjs-viewer-reactive
Reactive icon
pdfJS Viewer Reactive
Compatible with OutSystems 11
See morearrowrightdefaultarrowrighthover
pdfjs-viewer

pdfJS Viewer

Documentation
0.2.4

How to use pdfJS Viewer?


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). 

C:\Users\dfigueiredo\Downloads\resources_folder.png


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. 

C:\Users\dfigueiredo\Downloads\PDF_details.png


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. 

C:\Users\dfigueiredo\Downloads\RedirectViewerScreen.png


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. 

C:\Users\dfigueiredo\Downloads\service_studio_frame.png


Step 4

Set input parameters values, using parameters descriptions to help you fill input variables. 

C:\Users\dfigueiredo\Downloads\service_studio_entire_screen.png


C:\Users\dfigueiredo\Downloads\service_studio_frame_details.png

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.