[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Collapse]PDF Viewer
   [Expand]Getting Started
   [Expand]Navigation
   [Collapse]Access and Edit Document Content
    [Expand]Interactive Form
     File Attachment
     Text Markup Annotations
     Content Copying
     Printing
   [Expand]Interactivity
    Commands
   [Expand]Examples
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Content Copying

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

To enable the selection mode, invoke the context menu and choose the Select tool item (or set PdfViewerControl.CursorMode to CursorModeType.SelectTool).

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 PdfViewerControl.Select method. To copy the selected content to clipboard, execute PdfViewerControl.CopyCommand.

To select all text in a document for copying:

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

You can also clear the current selection by calling the PdfViewerControl.UnselectAll method.

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

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