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: