Question

2
Replies
112
Views
Close popover
sekar jothimani (SekarJothimani)
NCS

NCS
SG
SekarJothimani Member since 2008 5 posts
NCS
Posted: March 29, 2020
Last activity: March 30, 2020
Closed

Need to access a third party javascript lib location in pega (pdftron Webviewer Integration)

We are trying to integrate pega with PDFtron software, Webviewer is a  javascript library used to load pdf files in a client web browser.

Could you please suggest us.

Sample javascript

 

<script>   WebViewer({     path: 'WebViewer/lib', // path to the PDFTron 'lib' folder on your server     licenseKey: 'Insert commercial license key here after purchase',    pdftronServer: 'http://XXXXX:9090/', // comment this out to do client-side only

    initialDoc: 'https://XXXX/webviewer-demo.pdf',     // initialDoc: '/path/to/my/file.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     });   });

 

How to reference this lib folder location in pega?

 

 

Pega Platform 8.1.5 User Experience Other Industry
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.