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
 PDFViewer AllowObjectEditing

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
Ken Randall Posted - Dec 05 2024 : 05:10:22
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
5   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Dec 15 2024 : 22:23:21


Nigel
Xequte Software
www.imageen.com
Ken Randall Posted - Dec 15 2024 : 07:20:18
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
Ken Randall Posted - Dec 15 2024 : 04:45:07
Or just preventing deletion would be fine.

Ken R
Ken Randall Posted - Dec 15 2024 : 04:24:16
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
xequte Posted - Dec 05 2024 : 19:23:18
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