There are two ways of disabling printing inside the Viewer:
Let’s have a closer look at how both of these options can be used.
In order to remove printing from a template, you will need to open the "viewerTemplate.html" file that can be found inside a Samples folder. The exact location will depend on the type of sample you are using. For example, the .NET/Webforms sample it will be located at:
...Prizm\Samples\dotnet\webforms\full-viewer-sample\viewer-assets\templates
Once you’ve opened a file, search for an element with the attribute data-pcc-print="launch". In the default template, it’s located on line 10. Delete this element and restart the Viewer.
In order to disable printing via the Viewer parameters options object, that is passed to the Viewer, add the following uiElements parameter to the options object:
Example |
Copy Code
|
---|---|
var pluginOptions = { uiElements: { printing: false } }; |
For example, in ‘dotnet/webforms/full-viewer-sample’ samples, this options object is being created in ‘Default.aspx’ file on line 132.