Deactivate Shortcuts

2 posts, 0 answers
  1. Matthias
    Matthias avatar
    2 posts
    Member since:
    Jun 2013

    Posted 29 Apr 2014 Link to this post


    For my current application security of viewed PDF files is the major aspect.

    I added the following settings with PdfSharp

                securitySettings.PermitAccessibilityExtractContent = false;
                securitySettings.PermitAnnotations = false;
                securitySettings.PermitAssembleDocument = false;
                securitySettings.PermitExtractContent = false;
                securitySettings.PermitFormsFill = false;
                securitySettings.PermitFullQualityPrint = false;
                securitySettings.PermitModifyDocument = false;
                securitySettings.PermitPrint = false;

    It seems that the Telerik Component does not recognize these settings.

    So is it possible to deactivate the strg+a (select all) / strg+c (copy) shortcuts

    Buttons for Printing and Select Text are already deactivated.


  2. Dimitar
    Dimitar avatar
    2983 posts

    Posted 01 May 2014 Link to this post

    Hi Matthias,

    Thank you for writing.

    In this case you can use the SelectionChanged event and prevent the user from selecting (copying) anything:
    void PdfViewerElement_SelectionChanged(object sender, EventArgs e)

    I hope this helps. Should you have any other questions do not hesitate to ask.
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top