Set Up WebViewer Server
This guide will show you how to get started with a free trial of the WebViewer Server by loading a Docker Linux container instance and using it to display WebViewer on a local HTTP server.
WebViewer server is primarily recommended for increased file format support and to enable server side rendering which can improve overall viewing performance on all platforms. This performance improvement is most noticeable on low end mobile devices and Internet Explorer.
Your free trial includes unlimited trial usage and support from solution engineers.
Docker Linux container
The Docker instance is a Linux container and is our preferred set up method. This Docker Linux container instance can be run on any system which supports Docker technology. An alternative is to deploy without docker in order to set up our Windows version of WebViewer server.
Set up the server
The server sample uses Docker (version 2+) technology, which requires Windows 10, Windows Server 2016, or a Linux distribution. In theory, any system is sufficient as long as Docker can be installed.Install the appropriate package from https://docs.docker.com/engine/installation/
Download the WebViewer Server package.
Unpack the archive and navigate to its directory.
unzip WebViewer-Server.zip -d WebViewer-Server
cd WebViewer-ServerOpen the docker_compose.yml file in the root directory of the unpacked archive and set the
TRN_PDFNET_KEYoption to your license key (you do not need to set this property if you are demoing our software). If you are looking to allow WebViewer Server to do remote fetches, you should also tell it which values are allowed. The below example forTRN_ALLOWED_DOMAINSis set to*which allows all remote fetches.
Run the command line from the unpacked archive:
sudo docker-compose upYou should be up and running at this point.
Accessing the demo
Once the server is running, the server demo app is accessible at:
WebViewer integration
Once the docker container running, then supply the webviewerServerURL and l license argument to your WebViewer upon startup:
Last updated
Was this helpful?