Included in this package are two guides:

  • User Guide: [HTML]  [PDF] This document describes how to use WebViewer features from an end-user's perspective.
  • Developer Integration Guide: [HTML]  [PDF] This guide is intended to help developers integrate WebViewer into their own application. Please also see the samples pages.

API Reference

Also available are the API References for WebViewer and each of its viewers

  • WebViewer.js: This API reference details how to use the WebViewer.js viewer wrapper.
    Developers can refer to this API reference for integrating WebViewer with their own applications.
  • WebViewer HTML5: This API reference details how to use the DocumentViewer component, as well as the full-featured and customizable ReaderControl.
    Developers can refer to this API reference for making customizations to the HTML5 WebViewer.

Getting Started

To get started, convert your documents to the web-optimized XOD file. Choose from one of the three options:

  1. PWS Cloud: a web service that converts your documents and hosts them in the cloud. Sign up for a free evaluation account to start converting.
  2. DocPub CLI: a command-line tool that converts documents to XOD
  3. PDFNet SDK with WebViewer add-on: the full PDFNet SDK for working with PDF files and exporting them to XOD

For more information, please visit

Once you have converted your documents to XOD files, all you need to do is pass your XOD file URL to the WebViewer. The most basic usage of WebViewer is as simple as this:

var myWebViewerContainer = document.createElement("div");
var myWebViewer = new PDFTron.WebViewer({
    initialDoc : "path/to/xod"
}, myWebViewerContainer);

For PDF documents it's just as simple. See the Getting Started tutorial for more information.