The E-Signature viewers (Template Designer and E-Signer) can be configured in one of three ways as described below.
You can configure:
You can edit the sample-config.js module file and build the Viewer. This file is located in the modules/common folder of the Template Designer sample and E-Signer sample, which are installed when you install PrizmDoc.
Using PrizmDoc v10.3 or later, in JavaScript you can set window.pccViewerConfig before the Viewer is loaded. Note that the Viewer is loaded when all DOM elements are available (that is, when the jQuery document ready event fires). Any window.pccViewerConfig options you set will be used instead of the sample-config.js module settings (described in #1) or the query parameters (form or document).
For example, you could update C:\Prizm\Samples\.net\cs\template-designer-sample\index.html to include the following JavaScript code to configure the following options in the C# Template Designer:
Example |
Copy Code
|
---|---|
<script type="text/javascript"> window.pccViewerConfig = { markHandleMode: 'HideSideHandlesWhenClose', pageLayout: 'Horizontal', templateDocumentId: 'PdfDemoSample.pdf', }; </script> |
Using PrizmDoc v11.1 or later you can disable default embedding of the Viewer and instead use your own code to embed the Viewer into a web page. In order to do this you will need to perform the following steps:
Example Copy Code var viewer = $('#pcc-viewer-custom').pccESigner(options);
Example Copy Code <head> ... <!-- load the viewer bundles --> <link rel="stylesheet" href="viewer-assets/css/bundle.css"> <script src="viewer-assets/js/bundle.js"></script> <!-- this file will contain code for custom embedding --> <script src="viewer-assets/js/embed.js"></script> ... </head> <body> <div id="pcc-viewer-custom"></div> </body>