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
-
AI Assistant in the ForNAV Designer (beta)
-
Mapping from Business Central documents to ZUGFeRD and XRechnung
-
Using native Business Central ZUGFeRD generation with FORNAV reports
-
Repeater tables and barcodes in the ForNAV Template Editor
-
Controlling report language, format region, copies, and watermark with the Report Settings page
