Password protection of PDF files

You can password protect PDF files using JavaScript in the PreReport trigger: 

CurrReport.PrinterSettings.PdfEncryption.OwnerPassword = ‘MyOwnerPassword’;

CurrReport.PrinterSettings.PdfEncryption.UserPassword = ‘MyUserPassword’;

 
 

And you can use the DataExtractionAllowed, PrintingAllowed, ModificationAllowed, and InteractivityAllowed properties to specify what you can do when using the UserPassword: 

CurrReport.PrinterSettings.PdfEncryption.DataExtractionAllowed = false;

CurrReport.PrinterSettings.PdfEncryption.PrintingAllowed = true;

CurrReport.PrinterSettings.PdfEncryption.ModificationAllowed = false;

CurrReport.PrinterSettings.PdfEncryption.InteractivityAllowed = true;