LEADTOOLS Support
Document
Document SDK Questions
How to do Nudge Operations in LeadTools HTML Document Viewer?
#1
Posted
:
Wednesday, September 30, 2020 9:49:17 AM(UTC)
Groups: Registered
Posts: 60
Dear Team,
I came across the following document comparer link -
https://demo.leadtools.c...entComparison/index.htmlI noticed a Nudge operations on the right side of the screen. Please can you brief more on what is Nudge and how to do this in HTML5 JavaScript Document Viewer with an example code? Also any reference on how to change the Font Size, Font Color of the text in Document loaded in HTML5 JavaScript Document Viewer?
Thanks,
Abdul Rahman
#2
Posted
:
Wednesday, September 30, 2020 3:42:54 PM(UTC)
Groups: Manager, Tech Support, Administrators
Posts: 218
Was thanked: 12 time(s) in 12 post(s)
Hello,
The nudge functionality is included in the DocumentCompareDemo code here:
C:\LEADTOOLS21\Examples\JS\DocumentViewerDemos\DocumentCompareDemo\src\managers\RasterManager.ts
Code: private moveUp = (item: lt.Controls.ImageViewerItem) => {
item.offsetBy(lt.LeadPointD.create(0, this.nudgeThreshold * -1));
}
private moveDown = (item: lt.Controls.ImageViewerItem) => {
item.offsetBy(lt.LeadPointD.create(0, this.nudgeThreshold));
}
private moveLeft = (item: lt.Controls.ImageViewerItem) => {
item.offsetBy(lt.LeadPointD.create(this.nudgeThreshold * -1, 0));
}
private moveRight = (item: lt.Controls.ImageViewerItem) => {
item.offsetBy(lt.LeadPointD.create(this.nudgeThreshold, 0));
}
Can you go into more detail about the second question? Are you wanting to edit the font of a document once it's loaded? I'm not sure I understand what you are needing
Hadi Chami
Developer Support Manager
LEAD Technologies, Inc.
LEADTOOLS Support
Document
Document SDK Questions
How to do Nudge Operations in LeadTools HTML 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.