Luciano França Posted August 1, 2023 Share Posted August 1, 2023 I've searched the forum and google and couldn't find it. Using this Topic I managed to block several things but the fullscreen button I could not. I've already searched the forum for other topics and on google and I couldn't find it Grateful. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 1, 2023 Share Posted August 1, 2023 Hello, Try this approach: 12 minutes ago, Luciano França said: Using this Topic I managed to block several things but the fullscreen button I could not. I've already searched the forum for other topics and on google and I couldn't find it procedure TMainForm.UniPDFFrame1FrameLoaded(Sender: TObject); begin // presentationMode UniSession.AddJS (UniPDFFrame1.JSName + '.iframe.contentWindow.document.' + 'getElementById ("presentationMode").style.display = "none"'); // secondaryPresentationMode UniSession.AddJS (UniPDFFrame1.JSName + '.iframe.contentWindow.document.' + 'getElementById ("secondaryPresentationMode").style.display = "none"'); end; Best regards, Quote Link to comment Share on other sites More sharing options...
Luciano França Posted August 1, 2023 Author Share Posted August 1, 2023 2 hours ago, Sherzod said: Hello, Try this approach: procedure TMainForm.UniPDFFrame1FrameLoaded(Sender: TObject); begin // presentationMode UniSession.AddJS (UniPDFFrame1.JSName + '.iframe.contentWindow.document.' + 'getElementById ("presentationMode").style.display = "none"'); // secondaryPresentationMode UniSession.AddJS (UniPDFFrame1.JSName + '.iframe.contentWindow.document.' + 'getElementById ("secondaryPresentationMode").style.display = "none"'); end; Best regards, Much obliged. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.