Detect if pdf uses unlicensed features?

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v5)  /  Detect if pdf uses unlicensed features?

DynamicPDF CoreSuite for .NET (v5) Forum

We know that if you try to merge a document that uses features not supported by your license, that it will insert a watermark into the document. Is there a way to detect if a pdf uses unlicensed features? We don't have the enterprise license and our customers are getting very confused when they see a DynamicPDF watermark on their documents that have password protection. We'd like to warn the user that password protected pdfs are not supported rather than produce a document with a watermark in it.
Posted by a ceTe Software moderator
Hello,

It is not possible to determine if the PDF document has unlicensed features that might trigger the watermark. In order to open the password protected PDFs you would need to provide a password to the PdfDocument constructor along with the file name. Instead use the PdfDocument constructor that takes only the PDF file name. If the PDF requires a password you would receive a PdfSecurityException which can be captured in a try..catch to determine if the PDF requires a password or not.

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 1:12 PM.