Join us for an engaging webinar, as we unravel the potential of AI for revolutionizing document management.
Watch Now
Enable your employees to remain productive throughout the document management process.
Read More
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.
Docubee is an intelligent contact automation platform built to help your team success
Normally, when I create a viewer in my own application, I do:
viewer = $("#some-div").pccViewer({ ...options });
Then I can make calls like:
viewer.viewerControl.search("Some search term.");
But in the legacy samples the Viewer isn’t set to a global variable. How can I access the viewerControl object?
If you call $("#some-div").pccViewer(); without any arguments, it will access the existing Viewer in the relevant <div> instead of creating a new one. For example, in the WebForms sample, var viewer = $("#viewer1").pccViewer(); will create a reference to the sample’s existing Viewer.
$("#some-div").pccViewer();
<div>
var viewer = $("#viewer1").pccViewer();