Patagames Software Support Forum
»
Pdfium.Net SDK
»
Common Questions
»
How to prevent copying the text of a PDF displayed in PDFViewer
Rank: Newbie
Groups: Registered
Joined: 3/5/2023(UTC) Posts: 7  Location: Tokyo Thanks: 2 times
|
I am using Pdfium's PdfViewer in WPF, C#. I want to prevent copying and pasting text from a PDF. in the default state, selecting text in a PDF and pressing Ctrl+C will copy the text to the clipboard. How do I set this so that I can't do this? Either approach is fine, either disable text selection or disable copying to the clipboard.
I want to switch the availability of copying the text from ViewModel, so it would have been ideal if I could set something like TextSelectionEnabled = false in the pdfViewer's DependencyProperty, but it doesn't seem to be possible.
|
|
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Posts: 1,133
Thanks: 10 times Was thanked: 132 time(s) in 129 post(s)
|
Hello, Code:pdfViewer1.MouseMode = MouseModes.PanTool;
|
|
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 3/5/2023(UTC) Posts: 7  Location: Tokyo Thanks: 2 times
|
Thank you! I misunderstood when I posted this question and it was a bit odd, but anyway, now I have achieved what I wanted to do.
|
|
|
|
|
|
Patagames Software Support Forum
»
Pdfium.Net SDK
»
Common Questions
»
How to prevent copying the text of a PDF displayed in PDFViewer
Forum Jump
You can post new topics in this forum.
You can reply to topics in this forum.
You can delete your posts in this forum.
You can edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close