# Evaluating PDF.Js Express as alternative for PDF.Js

**URL:** <https://pdfjs.community/t/evaluating-pdf-js-express-as-alternative-for-pdf-js/474>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [February 4, 2021, 7:22pm UTC](https://pdfjs.community/t/evaluating-pdf-js-express-as-alternative-for-pdf-js/474 "2021-02-04T19:22:39Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![sudheer.gaddam](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@sudheer.gaddam](https://pdfjs.community/u/sudheer.gaddam)\
**Post date:** [February 9, 2021, 6:22pm UTC](https://pdfjs.community/t/evaluating-pdf-js-express-as-alternative-for-pdf-js/474/6 "2021-02-09T18:22:03Z")

</div>

Hi,

I have placed the folder in our webserver and tried as suggested but I am getting the below error. Please suggest if I am missing something here. All file permissions are set to 775.

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/40a2450336eedc4a32405b09a20d6371e571fd48.png)

viewer.html

PDF.js Express

viewer.js  
WebViewer({  
path: “/apps/psofthr/ORQHRTST/webserv/orqhrtstt/applications/peoplesoft/PORTAL.war/orqhrtst/PDFJSExpress/lib”, // path to the PDF.js Express’lib’ folder on your server  
licenseKey: ‘Insert commercial license key here after purchase’,  
//initialDoc: ‘[https://pdftron.s3.amazonaws.com/downloads/pl/webviewer-demo.pdf’](https://pdftron.s3.amazonaws.com/downloads/pl/webviewer-demo.pdf%E2%80%99),  
initialDoc: “/apps/psofthr/ORQHRTST/webserv/orqhrtstt/applications/peoplesoft/PORTAL.war/orqhrtst/PDFJSExpress/PDF.js Express Evaluation License.pdf”, // You can also use documents on your server  
}, document.getElementById(‘viewer’))  
.then(instance =\> {  
const docViewer = instance.docViewer;  
const annotManager = instance.annotManager;  
// call methods from instance, docViewer and annotManager as needed

// you can also access major namespaces from the instance as follows:  
// const Tools = instance.Tools;  
// const Annotations = instance.Annotations;

docViewer.on(‘documentLoaded’, () =\> {  
// call methods relating to the loaded document  
});  
});

---

_[View the full topic](https://pdfjs.community/t/evaluating-pdf-js-express-as-alternative-for-pdf-js/474)._
