Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [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]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Collapse]PDF Viewer
   [Expand]Getting Started
   [Expand]Interactive Forms
   [Expand]Navigation
   [Collapse]Interactivity
     File Attachment
     Text Markup Annotations
     Navigating and Viewing a Document
     Content Copying
     Document Rotation
     Zooming
     Printing
    Deployment
   [Expand]Examples
   Reporting
  [Expand]Snap
  [Expand]TreeMap 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]Document Server
[Expand]Reporting
[Expand]Report 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 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.

How would you rate this topic?​​​​​​​