This recipe demonstrates how to enable encryption using password in a report template.
Steps taken:
- Create a report template (Encryption.rml).
- Enter the following code into the “Report Properties > Scripts > On Render Begin” page:var rd = getRenderDetails(“application/pdf”);
 if (rd==null)
 {
 rd = new RenderDetails(“application/pdf”);
 addRenderDetails(rd);
 }
 rd.setParameterValue(“Encryption”,“true”);
To download the necessary files for this recipe, refer to the attached ZIP package.
Encryption.zip (2.3 KB)