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
 Setting ImageEn to load PDF seems to disable ImageEn Objects
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
736 Posts

Posted - Jul 16 2026 :  07:50:07  Show Profile  Reply
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

xequte

39489 Posts

Posted - Jul 16 2026 :  15:48:04  Show Profile  Reply
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
Go to Top of Page

yogiyang

India
736 Posts

Posted - Jul 18 2026 :  01:14:50  Show Profile  Reply
 
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
Go to Top of Page

xequte

39489 Posts

Posted - Jul 18 2026 :  15:19:15  Show Profile  Reply
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
Go to Top of Page

yogiyang

India
736 Posts

Posted - Jul 20 2026 :  00:17:41  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: