LEADTOOLS Support
Imaging
Imaging SDK Questions
Refresh image viewer each time a page is scanned when we scan a batch of pages
#1
Posted
:
Friday, November 10, 2017 12:14:38 AM(UTC)
Groups: Registered
Posts: 7
Thanks: 3 times
As per code in C:\LEADTOOLS 19\Examples\JS\Documents\ScanningDemo, the image viewer gets refreshed only after the scanner has stopped scanning pages.
private updatePagesView(status: lt.Scanning.JavaScript.ScanningStatus): void {
var newPageAdded: boolean = false;
for (; this._totalScannedPages < status.pageCount; this._lastPageNumber++) {
newPageAdded = true;
}
if (!status.isScanning) {
this.endOperation(false);
if (newPageAdded) {
this.gotoPage(this._lastPageNumber);
} else {
alert(status.errMessage);
}
}
}
With the above code, for example when I am scanning a batch of 5 pages, the image viewer will display only after last page in the batch is scanned.
Is there a way where we can refresh the image viewer after each page is scanned from the batch?
Any help is much appreciated.
Thanks,
Lawrence
#2
Posted
:
Friday, November 10, 2017 12:20:59 PM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 63
Thanks: 2 times
Was thanked: 4 time(s) in 4 post(s)
Lawrence,
Could you provide more information on how you're running the demo? Are you using the provided web scanning service from our website?
It appears that batch scanning only obtains the image information once all pages have been scanned. Due to this, it would not be possible to update the Imageviewer with image information due to the batch process still taking place. However, I can submit a feature request to our engineering team where they will look into implementing this into future releases. Let me know if you would like to proceed with this.
Joe Zhan
Developer Support Engineer
LEAD Technologies, Inc.
1 user thanked Joe Z for this useful post.
LEADTOOLS Support
Imaging
Imaging SDK Questions
Refresh image viewer each time a page is scanned when we scan a batch of pages
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.