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



Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, October 28, 2014 8:17:04 AM(UTC)


Groups: Manager, Tech Support, Administrators
Posts: 218

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

Attached is an HTML5 project that shows how to use the Raster.svc and the Info.svc to navigate a multipage document. The project uses PDF but the same approach can be used with other document types such as DOC or DOCX. The Info REST service is used to get the total amount of pages from the document so that you can then use that number and the Raster REST service to load the next or previous page.

In-line comments in the Default.js file explains the code.

To run this project:

  1. Make sure to have IIS setup on your machine
  2. Run this exe to setup the REST services - C:\LEADTOOLS 18\Shortcuts\HTML5\01 Document\01 Local Demos\10 Run This First To Configure Demos and Services
  3. Make sure that the services are setup correctly by Testing them on the final tab of the utility (if any errors occur, please click the 'Troubleshooting' button
  4. Extract the attached folder and move it to your C:\inetpub\wwwroot\ folder (iis localhost)
  5. Browse to the HTML file - http://localhost/Leadtools%20Multipage%20Example/Default.html
  6. Load an image (one should be loaded by default) and then you can click Next Page and Previous Page to navigate the pages of the file
File Attachment(s):
Leadtools Multipage Example.zip (115kb) downloaded 66 time(s).
Hadi Chami
Developer Support Manager
LEAD Technologies, Inc.


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-2023, Yet Another Forum.NET
This page was generated in 0.046 seconds.