PrizmDoc Viewer v13.10 Release - Updated
Architecture & Design
Developer Guide > Viewer > Architecture & Design

The Viewer offers the following features out of the box:

Responsive UI

The Viewer’s responsive UI is designed for phone, tablet, and desktop users. A single UI implementation adapts to the viewport size of the device or element in which it is embedded.

jQuery Plugin

A jQuery plugin is used to embed the full-featured, responsive Viewer on the page.

Example
Copy Code
$("#myDiv").pccViewer(pluginOptions);

Configuration

The Viewer UI and behavior can be configured when the Viewer is embedded, using JavaScript parameters.

Example
Copy Code
var pluginOptions = {
    documentID : "1234abcd",
    encryption : false,
    viewMode : "EqualWidthPages"
}

Configurable options include:

Customizable UI

If the Viewer needs to be customized more than configuration options allow, all UI code is open-source and can be modified to suit customization needs.

The open-source Viewer code is separated into CSS files, template HTML files, and JavaScript. The code leverages custom HTML attributes and Underscore.js’ templating system in-order to maintain separation of concerns.

API

The Viewer API offers complete control over the Viewer. The API allows callers to augment, customize, or automate the end user’s experience with the Viewer.

The API functionality covers:

Example
Copy Code
var api = $("#myDiv").pccViewer(pluginOptions).viewerControl;
api.on("PageCountReady", function() {
    api.changeToLastPage();
});

Reusable Core Component

The core component used by the Viewer for rendering the document is the ViewerControl.

The ViewerControl is a component that can be used independent of the full Viewer; it can be directly embedded into a page and used for building a fully custom UI.

Left example above: embedding the full Viewer using the jQuery plugin. Right example above: embedding the ViewerControl alone.

The ViewerControl does not have dependencies on third party libraries.