This is a migrated thread and some comments may be shown as answers.

Copy text from PdfViewer?

3 Answers 67 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Shilpi
Top achievements
Rank 1
Shilpi asked on 16 Apr 2013, 09:53 PM
Hi -

I am unable to copy text from the PdfViewer and paste it in notepad using Ctrl+c, Ctrl+v. PLease let me know if that is possible?

Thanks, Shilpi

3 Answers, 1 is accepted

Sort by
0
Kammen
Telerik team
answered on 17 Apr 2013, 08:00 AM
Hi Shilpi,

RadPdfViewer supports copy. In order to enable it, you should change the mode to TextSelection. Then, you should be able to copy from the PDF document.

If you have any problems with that setup, we will appreciate if you send us a sample project / document that will illustrate this issue.

Regards,
Kammen
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Shilpi
Top achievements
Rank 1
answered on 24 Apr 2013, 09:08 PM
Hi Kammen -

Thanks for your response. It seems like if I put the PdfViewer inside ScrollViewer, then copy (Ctrl+C) does not work. Could you please let me know how to make that work?

Thanks, Shilpi
0
Kammen
Telerik team
answered on 25 Apr 2013, 11:19 AM
Hi Shilpi,

Placing RadPdfViewer in a ScrollViewer does have that side effect. This is so because the ScrollViewer handles the Key events and they do not reach the PdfViewer. You can verify that by placing a Grid or some other control in a ScrollViewer and handling its KeyDown event.

Overall, it is not recommended to use RadPdfViewer inside ScrollViewer (or any container that will measure it in Infinite size) for a variety of reasons. This not only causes performance issues, because RadPdfViewer cannot use virtualization when showing a larger document, but also disables functionality such as go to page, find text, etc.
 

Greetings,
Kammen
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
PDFViewer
Asked by
Shilpi
Top achievements
Rank 1
Answers by
Kammen
Telerik team
Shilpi
Top achievements
Rank 1
Share this question
or