Select all text

Select all text

Forum member · Nov 10, 2009
Hello, Is there a possibility to implement "select all text in the document" functionality using DynamicPdfViewer (same as ctrl+A in any text editor)? I only see Highlight method which can be used to select the particular area of the page but it is not really the desired behavior.

Re: Select all text

Support · Nov 10, 2009
Hello, It is not possible to implement this functionality directly, however you will be able to achieve this using the Highlight and GetPageText methods. You can highlight the total page using the Highlight method. Below is the sample code to highlight total page. VB Code: DynamicPDFViewer1.Highlight 0, 0, 0, DynamicPDFViewer1.GetPageWidth(0), DynamicPDFViewer1.GetPageHeight(0) You will be able to get the text present in a page by using the GetPageText method. You can use this method if you need the text from the highlighted page. VB Code: Dim a As String a = DynamicPDFViewer1.GetPageText(0) Thanks, ceTe Software Support Team.