Is it possible to select that text from pdf viewer and show in textbox ?

1 Answer 237 Views
Form PdfViewer and PdfViewerNavigator
Aravind
Top achievements
Rank 2
Iron
Iron
Iron
Aravind asked on 10 May 2023, 04:08 AM

Hi, 
   I want to select the text from pdf file using pdfviewer and show that text in textbox, same like want to capture the text position same like zone of the text using x axis ,y axis ,height and width. I saw this is available in ui for wpf  , so same like available in ui for windows ?

Could you pls share sample project for text selection in wpf ? or if got in win pls share.
i used Radpdfviewer and RadPdfViewerNavigator for windows

Pls reply asap.

Regards
Aravind

1 Answer, 1 is accepted

Sort by
1
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 12 May 2023, 12:32 PM

Hi, Aravind,

RadPdfViewer from the Telerik UI for WinForms suite offers a similar convenient API for managing the selection a pdf file. Please have a look at the following help article:

https://docs.telerik.com/devtools/winforms/controls/pdfviewer/features/text/text-selection

The RadPdfViewer.Document.Selection.GetSelectedText() method returns the currently stored selected text.  

        private void radButton1_Click(object sender, EventArgs e)
        {
            RadMessageBox.Show(this.radPdfViewer1.Document.Selection.GetSelectedText());
        }

 

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Form PdfViewer and PdfViewerNavigator
Asked by
Aravind
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or