Jump to content

How to Block PDF's Show Button (FullScreen)


Luciano França

Recommended Posts

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,

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...