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
 extracting pages from tif AND pdf

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
lorife Posted - Oct 14 2025 : 05:47:15
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


3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 14 2025 : 19:46:16
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
lorife Posted - Oct 14 2025 : 07:26:17
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
lorife Posted - Oct 14 2025 : 05:54:53
edit: i'm using lastest version on delphi 13