Hello,
I am using the @pdftron/pdfjs-express library with a license key and on the deployed app the pdfjs-express watermark is not visible, which is good and expected.
When I npm install @pdftron/webviewer and use type imports from that library (that I use only to have the Typescript types that are not provided by @pdftron/pdfjs-express itself) though, the watermark shows.
I could imagine that this is due to pdfjsexpress somehow assuming I am not paying since I use the free library (somehow “on top”)?
Funnily, if I take the code from @pdftron/webviewer and just paste it into a local file and import the types from there, there is no such issue.
Is there any better strategy than this hacky workaround?
Hello CAI,
It is not recommended to import types from the WebViewer library. There could be compatibilities issues from being different products and versioning. If you receive any type errors, these can be safely ignored using ts-ignore.
best regards,
Kevin