settings = new Stimulsoft.Report.Export.StiPdfExportSettings();
settings.userAccessPrivileges = Stimulsoft.Report.Export.StiUserAccessPrivileges.All;
settings.keyLength = Stimulsoft.Report.Export.StiPdfEncryptionKeyLength.Bit128;
settings.passwordInputUser = password;
settings.passwordInputOwner = password;
Is there something more I need to do, the pdf is still created without password protection?
Password protect pdf
-
- Posts: 80
- Joined: Thu Aug 18, 2016 7:29 am
Re: Password protect pdf
Hello,
Unfortunately, in the JS version, at the current moment, this feature is not available.
There is task in our to-do list, but I cannot say when it will be available.
Thank you.
Unfortunately, in the JS version, at the current moment, this feature is not available.
There is task in our to-do list, but I cannot say when it will be available.
Thank you.
-
- Posts: 1
- Joined: Tue Mar 29, 2022 2:04 am
Re: Password protect pdf
Hello! Can I ask if this is applied to where ? I'm trying to do the password protect pdfterje.pedersen wrote: ↑Fri Sep 15, 2017 10:59 am settings = new Stimulsoft.Report.Export.StiPdfExportSettings();
settings.userAccessPrivileges = Stimulsoft.Report.Export.StiUserAccessPrivileges.All;
settings.keyLength = Stimulsoft.Report.Export.StiPdfEncryptionKeyLength.Bit128;
settings.passwordInputUser = password;
settings.passwordInputOwner = password;
Is there something more I need to do, the pdf is still created without password protection?
Re: Password protect pdf
Hello,
These settings are working in our current build.
Do you get any issue with them?
Thank you.
These settings are working in our current build.
Do you get any issue with them?
Thank you.
Re: Password protect pdf
Using directiveervin.tanig wrote: ↑Tue Mar 29, 2022 2:06 am
Hello! Can I ask if this is applied to where ? I'm trying to do the password protect pdf
using Stimulsoft.Report.Export;
Before export
StiPdfExportSettings settings = new StiPdfExportSettings();
settings = new StiPdfExportSettings();
settings.UserAccessPrivileges = Stimulsoft.Report.Export.StiUserAccessPrivileges.All;
settings.KeyLength = Stimulsoft.Report.Export.StiPdfEncryptionKeyLength.Bit128;
settings.PasswordInputUser = "pass";
settings.PasswordInputOwner = "pass";
Then
oreport.ExportDocument(StiExportFormat.Pdf, file, settings);
And report is exported with password
-
- Posts: 6198
- Joined: Tue Mar 20, 2018 5:34 am
Re: Password protect pdf
Hello,
Thank you for the provided information.
Thank you for the provided information.