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;
Latest news
Latest knowledge base articles
-
FORNAV moves to the layout type “Custom”
-
Detect if a JavaScript record or data item record is the last record within the current filter
-
Troubleshooting when using the FORNAV reporting service for printing (Server Print)
-
Setting up Business Central for FORNAV E-invoicing and Peppol Plus
-
Using Auto Format in FORNAV layouts
