Copy text from PdfViewer?

4 posts, 0 answers
  1. Shilpi
    Shilpi avatar
    18 posts
    Member since:
    Jan 2012

    Posted 16 Apr 2013 Link to this post

    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
  2. Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 17 Apr 2013 Link to this post

    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.

  3. DevCraft banner
  4. Shilpi
    Shilpi avatar
    18 posts
    Member since:
    Jan 2012

    Posted 24 Apr 2013 Link to this post

    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
  5. Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 25 Apr 2013 Link to this post

    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.

Back to Top