This is a migrated thread and some comments may be shown as answers.

Deactivate Shortcuts

1 Answer 49 Views
PdfViewer and PdfViewerNavigator
This is a migrated thread and some comments may be shown as answers.
Matthias
Top achievements
Rank 1
Matthias asked on 29 Apr 2014, 07:48 AM
Hey,

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.

Thanks

Matthias

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 01 May 2014, 06:38 AM
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)
{
    radPdfViewer1.Document.Selection.Clear();
}

I hope this helps. Should you have any other questions do not hesitate to ask.
 
Regards,
Dimitar
Telerik
 
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.
 
Tags
PdfViewer and PdfViewerNavigator
Asked by
Matthias
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or