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
 PDFViewer AllowObjectEditing
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Ken Randall

56 Posts

Posted - Dec 05 2024 :  05:10:22  Show Profile  Reply
Hi,

I am adding an image to an existing PDF. I want to be able to edit/delete/move this image but not other objects. How can I do this?

Thanks

Ken R

xequte

38686 Posts

Posted - Dec 05 2024 :  19:23:18  Show Profile  Reply
Hi Ken

There is no functionality for that at this time. But you could try resetting the Selected Object:

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

When you get an ieiPDFObjectSelected event in OnUserInteraction:

https://www.imageen.com/help/TImageEnView.OnUserInteraction.html


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Ken Randall

56 Posts

Posted - Dec 15 2024 :  04:24:16  Show Profile  Reply
Hi Nigel,

I have tried the following but it doesn't stop the object being selected. I have also tried setting the SelectedObject to -1. So how can I stop an object being selected?

procedure TfrmMain.ImageEnView1UserInteraction(Sender: TObject; Event: TIEUserInteractionEvent; Info: Integer);
begin
  if Event=ieiPDFObjectSelected then
  begin
    ImageEnView1.PdfViewer.ClearSelection;
  end;
end;

Thanks

Ken R
Go to Top of Page

Ken Randall

56 Posts

Posted - Dec 15 2024 :  04:45:07  Show Profile  Reply
Or just preventing deletion would be fine.

Ken R
Go to Top of Page

Ken Randall

56 Posts

Posted - Dec 15 2024 :  07:20:18  Show Profile  Reply
If I store the number of objects into a variable when opening the pdf this works:

if (Event=ieiPDFObjectSelected) then
  begin
    ImageEnView1.PdfViewer.AllowObjectEditing:=
      ImageEnView1.PdfViewer.SelectedObject>=NumObjects;
  end;


Ken R
Go to Top of Page

xequte

38686 Posts

Posted - Dec 15 2024 :  22:23:21  Show Profile  Reply


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