Hello Forum,
I can render a PDF with ReportProcessor.RenderReport() successfully.
Now I want to encrypt the PDF, there seems to be two ways to do this with the PDF Device Information Settings:
1. Set the user and owner password. This works, but it is not a solution for my use case, because it requires a clear password.
deviceInfo.Add("OwnerPassword", "myPassword");
deviceInfo.Add("UserPassword", "myPassword");
2. Use a certificate for encryption. This does not work, but would be my preferred solution.
deviceInfo.Add("SignCertFilename", "C:\\Temp\\my.cer");
deviceInfo.Add("SignCertPassword", "myPassword");
I cannot find an example which utilizes the device info SignCertFilename (google "Telerik SignCertFilename" returns one result, which links to above documentation).
Does the encryption with a certificate actually work?
Do you have an example code for me, maybe I must set a specific device information.
If you wish, I can deliver a minimal working example.
Thank you for reading!