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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 extracting pages from tif AND pdf
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

lorife

Italy
48 Posts

Posted - Oct 14 2025 :  05:47:15  Show Profile  Reply
Hello,
I load a PDF or a TIF in a TImageENMview like this:

iemv_OUT.LoadFromFileOnDemand(FSplit.FFullPathIN, False);


I do that because later i have some logic behind and select the pages I want to export:


iemv_OUT.BeginSelectImages;
iemv_OUT.MultiSelecting := True;

iemv_OUT.ImageFileName[numSel] := FSplit.FFullPathIN + '::' + idSel.ToString;
iemv_OUT.SelectedImage := idSel;
// I do this on other pages

iemv_OUT.EndSelectImages();
iemv_OUT.MultiSelecting := False;

// then export selected


my actual problem is that after I load the image I check the pages loaded on the PDF like this:

totImg := iemv_OUT.ImageCount;


I don't understand why it's returning 0 on this PDF, everything else seems to work.
Is it a bug? How else can I solve it?
thanks


lorife

Italy
48 Posts

Posted - Oct 14 2025 :  05:54:53  Show Profile  Reply
edit: i'm using lastest version on delphi 13
Go to Top of Page

lorife

Italy
48 Posts

Posted - Oct 14 2025 :  07:26:17  Show Profile  Reply
I found out the problem. I forgot to copy iepdf32.dll in the project folder. What is strange is that after LoadFromFileOnDemand I check aborting property and it was false, even if in the manual it said that if the dll is missing it should be true
Go to Top of Page

xequte

39223 Posts

Posted - Oct 14 2025 :  19:46:16  Show Profile  Reply
Hi

Aborting is not set to true because you are loading on demand, i.e. at the point that LoadFromFileOnDemand() returns, loading has not even begun yet.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: