LEADTOOLS Support
Imaging
Imaging SDK Questions
How To: Image processing commands on javascript document viewer
#1
Posted
:
Friday, April 17, 2015 8:51:58 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Attached is a Javascript project that demonstrates how to do image processing commands on the document viewer.
In the example remember that with SVG the white part isn't technically part of the image, so it won't be inverted making your black text white on white.
#2
Posted
:
Monday, February 6, 2017 2:20:27 AM(UTC)
Groups: Registered
Posts: 1
Hi, Thanks for this demo. I am facing some problems. I have taken the demo and trying to run it in my machine but it is showing "Error Loading Document". Can you please help me.
#3
Posted
:
Friday, February 10, 2017 11:27:53 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 71
Was thanked: 4 time(s) in 3 post(s)
Unfortunately, the original post here used our older HTML5/JS Document Viewer demo which relied on our older REST services for loading the file and those REST services have since been deprecated. The error "Error Loading Document" that you are seeing is due to the Javascript libraries not being able to find the REST service endpoints via an AJAX call to request the document.
The latest version of the demo references backend services developed in either .NET or Java to load the documents. Below is a forum post on how to set up a simple version of the latest HTML5/JS Document Viewer demo with using the ASP.NET MVC Web API as an external service to load the documents:
https://www.leadtools.co...ternal-service#post41772We also have deprecated the LoadDocumentCommands and the DocumentFactory.loadFromUri function is now used to request the document from the backend service:
https://www.leadtools.co...factory~loadfromuri.htmlThe post I linked above would allow you to work with the latest HTML5/JS Document Viewer demo in the same manner that you are attempting to do with the original forum post.
To get access to the latest HTML5/JS Document Viewer demo, you will need to latest version of LEADTOOLS 19 which you can get from here:
https://www.leadtools.com/downloads?category=mainIf you have any further questions or concerns please let us know.
Edited by moderator Tuesday, July 16, 2019 2:21:09 PM(UTC)
| Reason: Not specified
Aaron Brasington
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Imaging
Imaging SDK Questions
How To: Image processing commands on javascript document viewer
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.