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
 Setting ImageEn to load PDF seems to disable ImageEn Objects

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
yogiyang Posted - Jul 16 2026 : 07:50:07
I have an existing application.

In that I need to add feature that will allow a user to open PDF file as image.

For that I added the following line
ImageEnView1.PdfViewer.Enabled := True;

After adding this line user is able to load PDF file but for some unknown reason the feature of ImageEn Objects stops working.

I am using the following code to add an Object.

ObjID := ImageEnView1.GetObjFromIndex(0);
ImageEnView1.ObjBrushColor[-1] := RGB(255,255,212);
ImageEnView1.ObjKind[IEV_NEXT_INSERTED_OBJECT] := iekBOX;
ObjID := ImageEnView1.AddNewObject;

//Set location and size of object
ImageEnView1.ObjLeft[ObjID] := ObjX;
ImageEnView1.ObjTop[ObjID] := ObjY;
ImageEnView1.ObjWidth[ObjID] := ObjW;
ImageEnView1.ObjHeight[ObjID] := ObjH;


How to resolve this issue?

Yogi Yang
4   L A T E S T    R E P L I E S    (Newest First)
yogiyang Posted - Jul 20 2026 : 00:17:41
Hi Nigel,

Initially my first attempt was to test loading of PDF files directly in IE but some unknown reason they were not getting loaded but after the solution you suggested in previous post worked for me.

But now that you have mentioned it I will try again to load PDF files.

Thank you.

Yogi Yang
xequte Posted - Jul 18 2026 : 15:19:15
Hi Yogi

You shouldn't need to use the PDF Viewer at all. By default, (when PDFViewer.Enabled=False), ImageEn just loads PDF files as images.

Nigel
Xequte Software
www.imageen.com
yogiyang Posted - Jul 18 2026 : 01:14:50
 
If you do not wish to use layers, you can load the PDF as image (PdfViewer.Enabled=False). Then standard TImageEnVect functionality is available.


Thanks for the solution. This trick works.

Currently enabling PDF, loading the PDF file and then disabling PDF.

Once again thanks a lot.

Yogi Yang
xequte Posted - Jul 16 2026 : 15:48:04
Hi Yogi

The PDF Viewer changes the functionality of TImageEnView for PDF display, so TImageEnVect objects do not work with it.

Layers are supported if you need to edit PDF page objects:

http://www.imageen.com/help/TIEPdfViewer.AllowLayers.html

If you do not wish to use layers, you can load the PDF as image (PdfViewer.Enabled=False). Then standard TImageEnVect functionality is available.


Nigel
Xequte Software
www.imageen.com