How can I enable content encryption in PrizmDoc Viewer?
First, you need to enable content encryption on the PrizmDoc Server in the central configuration file. To do this, find the viewing.contentEncryption.enabled
section and change the value to true
. Save the changes to the file and restart the PrizmDoc services for the change to take effect.
The file paths for the central configuration file are:
Linux: /usr/share/prizm/prizm-services-config.yml
Windows: C:\Prizm\prizm-services-config.yml
Next, you need to enable content encryption in the Viewer. To do this, in the index page of your viewer (Default.aspx
in C#, index.php
in the PHP sample, index.html
, etc.), provide the encryption option in the viewer options parameter as follows so that the Viewer can handle encrypted data:
function buildViewerOptions() {
...
var optionsOverride = args.pop(); // always last arg
var options = {
...
encryption: true
};
var combinedOptions = _.extend(optionsOverride, options);
embedViewer(combinedOptions);
}
For more in-depth information on enabling content encryption in PrizmDoc, please refer to our documentation here.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article