Disable "Copy Text" in PDF Viewer

Is it possible to disable the ability for the end-user to copy text from the PDF document.  My requirement is that the user can highlight, annotate, etc., but the use should not be able to copy text from the document.

Thanks,
Arthur

8 Replies

AA Akshaya Arivoli Syncfusion Team April 6, 2020 06:55 AM UTC

Hi Arthur, 

Thank you for contacting Syncfusion support. 

Currently we do not have support to Disable only the Copy option in our PDF Viewer. We can restrict the copying of the Text from PDF Viewer by setting the enableTextSelection to false, but we cannot highlight the text, so we will analyze further to disable the Copy option only and update you with more details on April 8th, 2020 


Regards, 
Akshaya 



AA Akshaya Arivoli Syncfusion Team April 8, 2020 12:49 PM UTC

Hi Arthur, 

We will provide Support for customizing the context menu options in our PDF Viewer control 
and the implementation for the feature will be included in our upcoming weekly NuGet release on April 22nd, 2020 


Regards, 
Akshaya 



AB Arthur Butler April 27, 2020 12:30 AM UTC

Thank you.  What is the API for customizing the context menu?


AA Akshaya Arivoli Syncfusion Team April 27, 2020 07:44 AM UTC

Hi Arthur, 

Sorry for the inconvenience caused. 

The implementation was not included in our latest weekly release. However it will be include in our 2020 Volume 1 SP1 release which is expected to be rolled in the mid of May 2020. 

Regards, 
Akshaya 



AB Arthur Butler April 28, 2020 04:52 AM UTC

OK, thank you.


AA Akshaya Arivoli Syncfusion Team May 13, 2020 02:18 PM UTC

 
We have implemented the feature and the implementation was included in our 2020 Volume 1 SP1  release v18.1.0.52. 
 
  Code Snippet: 
 
viewer.disableContextMenuItems = [ContextMenuItem.Cut,ContextMenuItem.Copy,ContextMenuItem.Properties]; 
 
 
 
Packages link:    
     
Client side package    
   
Blazor Client  
Service side package    
ASP.NET Core :    
     
ASP.NET MVC:    
   
CDN links:   
   
   
Regards,   
Akshaya   



AB Arthur Butler May 14, 2020 05:26 AM UTC

Thank you.  This works well.


AA Akshaya Arivoli Syncfusion Team May 14, 2020 07:20 AM UTC

Hi Arthur, 

Thank you for your update. We are glad to know that the provided details meet your requirement. Please contact us if you need any further assistance in feature. 

Regards, 
Akshaya 


Loader.
Up arrow icon