Quantcast
Channel: FORNAV
Viewing all articles
Browse latest Browse all 372

Password protection of PDF files

$
0
0

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;

The post Password protection of PDF files appeared first on ForNAV.


Viewing all articles
Browse latest Browse all 372

Trending Articles