Jump to content

Control TUniPDFFrame


david_navigator

Recommended Posts

2 minutes ago, david_navigator said:

With the TUniPDFFrame control, is it possible to control the options available to the user. For example I want to disable (and preferably hide) the Open button option so that the user can't change the PDF displayed in the form ?

Hello,

...

  • Like 1
Link to comment
Share on other sites

@Sherzod of course, this just hides the button from the user but they can re-initialise it by changing the Style through their browsers DevTools.

Can one use a similar technique to redirect the click event ?

Something like

  UniSession.AddJS (UniPDFFrame1.JSName + '.iframe.contentWindow.document.'
       + 'getElementById ("openFile").onclick = ""');

 

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...