Skip to content
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.

Support text selection #172

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Support text selection #172

wants to merge 3 commits into from

Conversation

sschim
Copy link

@sschim sschim commented Aug 24, 2018

Support selecting and copying text using the mouse cursor. PdfRenderer has a new CursorMode property to control whether to use panning or text selection.

PdfiumViewer.Demo contains a sample implementation of a right click menu. This is not implemented in PdfViewer / PdfRenderer because of localization, but it's easy to add.

PdfFile now caches the PageData for the current page so it doesn't have to reload and destroy the page data on every mouse move.

sschim added 3 commits August 24, 2018 13:42
Support selecting and copying text using the mouse cursor. PdfRenderer has a new CursorMode property to control whether to use panning or text selection.

PdfiumViewer.Demo contains a sample implementation of a right click menu. This is not implemented in PdfViewer / PdfRenderer because of localization, but it's easy to add.

PdfFile now caches the PageData for the current page so it doesn't have to reload and destroy the page data on every mouse move.
Mark the control as Selectable / UserMouse so it will take focus when clicked, and clear the selection state when (re)loading a document.
@gazickil
Copy link

Hi are you guys going to approve this change? I tested it and it works, would like to have this feature in next release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants