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
SIGN IN To post a reply.
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
Feedback link : https://www.syncfusion.com/feedback/13281/support-for-customizing-the-context-menu-options-in-our-pdf-viewer-control
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];
|
Feedback link: https://www.syncfusion.com/feedback/13281/support-for-customizing-the-context-menu-options-in-our-pdf-viewer-control
Packages link:
|
Client side package |
|
|
Blazor Client |
|
|
Service side package |
ASP.NET Core :
https://www.nuget.org/packages/Syncfusion.EJ2.PdfViewer.AspNet.Core.Windows/ https://www.nuget.org/packages/Syncfusion.EJ2.PdfViewer.AspNet.Core.Linux/
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
SIGN IN To post a reply.
- 8 Replies
- 2 Participants
-
AB Arthur Butler
- Apr 3, 2020 05:42 PM UTC
- May 14, 2020 07:20 AM UTC