logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Post a reply
From:
Message:

Maximum number of characters in each post is: 32767
Bold Italic Underline   Highlight Quote Choose Language for Syntax Highlighting Insert Image Insert an existing Attachment or upload a new File... Create Link   Unordered List Ordered List   Left Justify Center Justify Right Justify   Outdent Indent   More BBCode Tags
Font Color Font Size
Security Image:
Enter The Letters From The Security Image:
  Preview Post Cancel

Last 10 Posts (In reverse order)
Kazuhiro Tomita Posted Thursday, January 23, 2025 6:02:41 AM(UTC)
 
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.
Paul Rayman Posted: Tuesday, January 21, 2025 5:25:14 PM(UTC)
 
Hello,
Code:
pdfViewer1.MouseMode = MouseModes.PanTool;
Kazuhiro Tomita Posted: Saturday, January 18, 2025 8:06:41 PM(UTC)
 
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.