ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 onProgress + dynamically created ImageEnMView.IEMBitmap.CreateSearchablePDF

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
aleatprog Posted - Oct 05 2025 : 16:31:26
Hi,

if I dynamically create a TImageEnMView inside a TTask, how may I intercept its onProgress event during mageEnMView.IEMBitmap.CreateSearchablePDF to visualize the percentage of page progress?

procedure TfrmMain.Button1Click;
begin
  TaskCreateSearchablePDF := TTask.Create(procedure begin
    CreateSearchablePDF;
  end);
  TaskCreateSearchablePDF.Start;
end;

procedure TfrmMain.CreateSearchablePDF;
var
  IEMView: TImageEnMView;
begin
  IEMView:= TImageEnMView.Create(nil);
  try
    IEMView.MIO.LoadFromFile(source);
    IEMView.IEMBitmap.CreateSearchablePDF(path, title, lang, seg, frm, ocr);
  finally
    IEMView.Free;
  end;
end;

Ale
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 06 2025 : 08:16:53
Hi

Firstly, you can simplify your code as follows:

procedure TfrmMain.CreateSearchablePDF;
var
  IEM: TIEMultiBitmap;
begin
  IEM := TIEMultiBitmap.Create();
  try
    IEM.LoadFromFile(source);
    IEM.CreateSearchablePDF(path, title, lang, seg, frm, ocr);
  finally
    IEM.Free;
  end;
end;


And you can assign a OnProgress method to the OnProgress event:

http://www.imageen.com/help/TIECustomMultiBitmap.OnProgress.html

Nigel
Xequte Software
www.imageen.com