PrizmDoc Hybrid Viewing: Reduce server viewing requirements and streamline document processing
Read More
Enable your employees to remain productive throughout the document management process.
Learn how SmartZone uses a regular expression engine integrated into the recognition engine to achieve the best possible accuracy on data that can be defined by a regular expression.
The tale of how an underdog is going head-to-head with a tech giant (and winning).
How can I change the PrizmDoc Viewer so that the TextSelection tool is selected by default instead of the Pan tool?
In order to select the TextSelection tool by default in PrizmDoc Viewer there are a few things you need to take into account. First, you have to click the button inside the embedViewer() function found in the index page of the sample. Second, the button for the text selection tool is actually disabled initially, so in order to be able to click it, the button has to be enabled first by removing the pcc-disabled class.
embedViewer()
pcc-disabled
Use the following code to do this:
function embedViewer(options) { var viewer = $('#viewer1').pccViewer(options); viewer.viewerControl.on(PCCViewer.EventType.ViewerReady, function(viewer) { $("[data-pcc-mouse-tool=\"AccusoftSelectText\"]").removeClass('pcc-disabled'); $("[data-pcc-mouse-tool=\"AccusoftSelectText\"]").click(); }); }