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

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, September 30, 2020 9:49:17 AM(UTC)
Abdul Rahman

Groups: Registered
Posts: 59


Dear Team,

I came across the following document comparer link - https://demo.leadtools.c...entComparison/index.html

I 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
 

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.

#2 Posted : Wednesday, September 30, 2020 3:42:54 PM(UTC)

Hadi  
Hadi

Groups: Manager, Tech Support, Administrators
Posts: 215

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.

LEAD Logo
 
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-2020, Yet Another Forum.NET
This page was generated in 0.042 seconds.