LEADTOOLS Support
Imaging
Imaging SDK Examples
HOW TO: Use Raster.svc and Info.svc to navigate a multipage document in HTML5 application
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#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:
- Make sure to have IIS setup on your machine
- 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
- 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
- Extract the attached folder and move it to your C:\inetpub\wwwroot\ folder (iis localhost)
- Browse to the HTML file - http://localhost/Leadtools%20Multipage%20Example/Default.html
- 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
Hadi Chami
Developer Support Manager
LEAD Technologies, Inc.
LEADTOOLS Support
Imaging
Imaging SDK Examples
HOW TO: Use Raster.svc and Info.svc to navigate a multipage document in HTML5 application
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.