Which product are you using?
PDF.js Express Version
Detailed description of issue
{I am using PDF.js Express Viewer. I registered and got a license key by going to My Account > Subscriptions > PDF.js Express Viewer keys. I installed it properly after mentioning a license key. The viewer was working. Now I have the following two issues:
- A watermark “Apryse” was visible in the middle of each previewed pdf since starting of use. Tell me how we can remove that.
- It is giving a msg that your 7-day trial period expired now and the pdf is not getting rendered.
We thought it was free forever. }
Please the screenshot here about the issue:
Expected behaviour
{
We need to view all pdfs without any trial period msg and watermark.
}
Does your issue happen with every document, or just one?
{Everytime}
Link to document
{Not possible.}
Code snippet
WebViewer({
path: ‘WebViewer/lib’, // path to the PDF.js Express’lib’ folder on your server
licenseKey: ‘hidden’,
//initialDoc: ‘https://pdftron.s3.amazonaws.com/downloads/pl/webviewer-demo.pdf’,
initialDoc: ‘/media/sample-text.pdf’, // You can also use documents on your server
}, document.getElementById(‘viewer’))
.then(instance => {
// now you can access APIs through the WebViewer instance
const { Core, UI } = instance;
// adding an event listener for when a document is loaded
Core.documentViewer.addEventListener('documentLoaded', () => {
console.log('document loaded');
});
// adding an event listener for when the page number has changed
Core.documentViewer.addEventListener('pageNumberUpdated', (pageNumber) => {
console.log(`Page number is: ${pageNumber}`);
});
});