Some test text!

Search
Hamburger Icon

Web / Guides / Overview

Deploying WebViewer on your custom server

If you don't want to use WebViewer Server as your document backend you can setup your own server to handle document viewing with WebViewer.

Overview

By converting a wide range of document formats into a web optimized XPS file, called XOD, WebViewer is able to deliver consistent results in viewing different document types.

Instantiation

To instantiate WebViewer with a XOD document simply pass the URL in the initialDoc parameter and do not pass the webviewerServerURL option. You do not need to pass a license key to WebViewer because the license key will be used on your server to convert the documents.

WebViewer({
  initialDoc: 'YOUR_FILE.xod'
}, viewerElement);

Using the Apryse SDK for conversion on your server

You can use the Apryse SDK on your Linux, Windows or macOS server to do XOD conversions. Apryse also allows you to use more advanced features: for example apply your own watermark to all converted documents, add/remove pages to converted documents, merge annotations back to the original PDF.

Pre-converted XOD documents render very quickly on all devices. If you're unable to pre-convert your XOD files you can stream the conversion to start sending data to the client as soon as possible.

Apryse is available on Linux , Windows and macOS . For more information, see here.

Browser support

ChromeFirefoxSafariEdgeInternet ExplorerAndroid ChromeMobile Safari
9+

Trial setup questions? Ask experts on Discord
Need other help? Contact Support
Pricing or product questions? Contact Sales