- Download viewerJS on https://viewerjs.org/releases/ViewerJS-latest.zip
- Unzip the folder and move it to public folder
- Create a link to direct to the desired pdf file, example : <a href="/ViewerJS/#../path/to/filename.ext">
Note:
If you want to store the viewerJS folder to public/assets, You have to add assets before ViewerJS and delete the two dots after the hashtags in the link. Example : <a href="assets/ViewerJS/#/path/to/filename.ext">
Good luck!