@prizmdoc/viewer-core

13.27.3 • Public • Published

viewer-core

The @prizmdoc/viewer-core module contains core document viewing functionality and API that powers the PrizmDoc HTML5 viewer. Most people should not use this module directly but should instead start with one of our PrizmDoc viewer samples.

This module defines the PCCViewer namespace and the essential ViewerControl object, the thing which is responsible for displaying document page content to the end user and allowing them to interact with it. It does not define any of the standard buttons or panels which are part of the typical, "full" PrizmDoc viewer.

If you're still interested in using the viewer-core module directly, please check out our api documentation.

Including viewer-core

Browser

Script

<script src="/path/to/viewer-core/viewercontrol.js"></script>

ES5

var PCCViewer = require('@prizmdoc/viewer-core');

ES6

import { ViewerControl, SignatureControl, ThumbnailControl } from '@prizmdoc/viewer-core';
  • note: viewer-core requires a window with a document object;

Browserify/Webpack

viewer-core can be included in your pre-packaged projects using tools like Webpack, Browserify, and other packagers that support require modules. In general, all you have to do is include viewer-core in your project. You should include it as close to the root file of your build as possible.

Readme

Keywords

none

Package Sidebar

Install

npm i @prizmdoc/viewer-core

Weekly Downloads

126

Version

13.27.3

License

See license in LICENSE

Unpacked Size

4.22 MB

Total Files

7

Last publish

Collaborators

  • accusoft_npm