[Expand]General Information
[Collapse]WinForms Controls
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Collapse]PDF Viewer
   [Expand]Getting Started
    Coordinate Systems
   [Collapse]Access and Edit Document Content
    [Expand]Interactive Forms
     File Attachment
     Text Markup Annotations
     Content Copying
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Content Copying

The PDF Viewer allows you to select and copy text and an image from the document to the Clipboard.

To enable the selection mode, invoke the context menu and choose the Select Tool item (or set PdfViewer.CursorMode to PdfCursorMode.SelectTool). This mode is active by default.

To copy an image:

  • select the image or any part of an image;
  • right click the image and select the Copy command in the context menu, or press Ctrl+C;

  • paste the image into a desired application by choosing the Past command in the context menu, or pressing Ctrl+V.

To copy text:

  • highlight the text you desire;
  • choose the Copy command in the context menu, or press Ctrl+C;

  • paste the content into an application.

To select document content at the specified position in code, call the PdfViewer.Select method. To copy the selected content to the Clipboard, call the PdfViewer.CopyToClipboard method.

To select all text in a document for copying:

  • invoke the context menu;
  • choose the Select All command (press Ctrl+A);

  • or...

  • call the PdfViewer.SelectAllText method.

You can get information about whether or not document content is selected using the PdfViewer.HasSelection property. To obtain selected content in code, call the PdfViewer.GetSelectionContent method.

You can also clear the current selection by calling the PdfViewer.ClearSelection method.

To perform specific actions each time an end-user started, continued or ended the selection of document content, handle PdfViewer.SelectionStarted, PdfViewer.SelectionContinued, and PdfViewer.SelectionEnded events.

Is this topic helpful?​​​​​​​