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