Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, April 25, 2018 8:50:24 AM(UTC)
Duncan Quirk

Groups: Registered, Tech Support, Administrators
Posts: 70

Was thanked: 4 time(s) in 4 post(s)

The following post details how to to create a simple HTML5 Document Viewer application hosted using the Express NodeJS package in conjunction with V20 of the LEADTOOLS SDK. In order to run the project, you must specify a valid URL to the DocumentsService. The DocumentsService project is included in the following installation location within the SDK: <install directory>:\LEADTOOLS 20\Examples\JS\Documents\DocumentViewer\Services\DocumentsService

This demo requires that you have NodeJs installed. If you do not have Node installed, you can download the latest version off their website here: https://nodejs.org/en/

To run this demo you must perform the following:

  1. Extract the ZIP .
  2. Modify the main.js file in the public/scripts/ directory so that the serviceHost/servicePath/serviceApiPath point to the DocumentsService.
  3. From the root directory where you extracted the zip to, open up a command prompt and run "npm install" to download the package dependencies.
  4. From the root directory where you extracted the zip to, from the command prompt run "npm start" or "node server.js" to start the project. By default, this will start an Express Web Server listening in on localhost:3000. To modify the port, change the serverPort variable located in the server.js file.
  5. Open up the browser of your choice, and navigate to http://localhost:3000


When you are done, the resulting site will look like this:
Express Document Viewer
File Attachment(s):
Document_Viewer_Express_Demo.zip (537kb) downloaded 262 time(s).
Duncan Quirk
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.048 seconds.