This package has been deprecated

Author message:

This package has been discontinued. For a simple viewer, try edocr instead: https://www.edocr.com

prizmdoc-reader

1.0.5 • Public • Published

Accusoft PrizmDoc HTML5 Document Reader

If you're building an application that requires an easy-to-implement document viewer, then using Accusoft Services to display documents is perfect for you. With just a few lines of code, you can embed a document viewer into any web application or site. Start with our configurator here or read the FAQs.

You can view dozens of file types within a browser without the need to download additional applications. Easily add document viewing and search to your web applications using only HTML5 standard technologies. Create a trial PrizmDoc Reader account, which gives you up to 100 free transactions per month. Sign up for a free account now to get started.

PrizmDoc supports more than 300 file types, including :

  • Doc
  • PDF
  • PPT
  • XLS
  • CAD

Install

npm install prizmdoc-reader

Initializing the viewer

Note: jQuery version 1.6 or higher is required to run PrizmDoc Reader.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<script src="prizmdoc-reader.js" type="text/javascript"></script>
<script>
  getViewer(prizmDocKeyValue, documentUrl, viewerElementId, {optionalParameter : OptionalValue});
</script>

Request Type

GET

Request Headers

Name Discription Details
acs-api-key Your api key {{api-key-value}} Required

Parameters

Name Discription Details
key Your api key {{api-key-value}} Required
document The direct url to the document you wish to display Required
viewerElementId Viewer Iframe will be loaded within this HTML Element ID Required
region PrizmDoc Reader will be running on US Servers or EU Servers based on your API key (USA Default) Optional
logoimage Changes the logo image that displays before the viewer is loaded (url) Optional
viewertype Choosing between either the html5 viewer or the slideshow version (html5 or slideshow) Optional
viewerwidth Viewer width in pixels Optional
viewerheight viewer height in pixels Optional
lowerToolbarColor Changes the color of the toolbar using hex color codes without the # (i.e. FFFFFF) Optional
upperToolbarColor Changes the color of the toolbar using hex color codes without the # (i.e. FFFFFF) Optional
bottomToolbarColor Changes the color of the toolbar using hex color codes without the # (i.e. FFFFFF) Optional
backgroundColor Changes the color of the background using hex color codes without the # (i.e. FFFFFF) Optional
fontColor Changes the color of the toolbar font using hex color codes without the # (i.e. FFFFFF) Optional
animduration Sets the amount of time between slide changes in ms (int) Optional
animspeed Sets the amount of time between slide changes in ms (int) Optional
hideAll false Optional
automatic Should the slideshow start and rotate automatically (yes / no) Optional
showcontrols Should the controls display on hover? (yes / no) Optional
centercontrols Should the controls be centered or at the top of the slideshow (yes / no) Optional
keyboardnav Allow for keyboard navigation (yes / no) Optional
hoverpause Should the slideshow pause on hover? (yes / no) Optional

Request Body

Empty.

Response Header

Name Value
Content-Encoding gzip
Content-Type text/html

Response Body

Returns the document within the viewer itself with all the parameters you defined when initializing the viewer.

For More Info

PrizmDoc Reader

Version

1.0.0

License

MIT

©2016. Accusoft Corporation. All Rights Reserved.

Package Sidebar

Install

npm i prizmdoc-reader

Weekly Downloads

1

Version

1.0.5

License

MIT

Last publish

Collaborators

  • accusoft_npm