←Select platform

GetDocumentPageText Method

Summary

DocumentPageText object of a page.

Syntax
C#
VB
C++
public DocumentPageText GetDocumentPageText( 
   int pageNumber 
) 
Public Function GetDocumentPageText( 
   ByVal pageNumber As Integer 
) As DocumentPageText 
public:  
   DocumentPageText^ GetDocumentPageText( 
      int pageNumber 
   ) 

Parameters

pageNumber

Pager number to use. This cannot be 0.

Return Value

A DocumentPageText that contains the text of the page.

Remarks

DocumentViewerText saves the DocumentPageText items internally when they are obtained. Hence, this method will first check if the value has already been obtained, if so, it will return the cached item. Otherwise, DocumentPage.GetText will be called and the result is stored internally before it is returned.

Calling DocumentPage.GetText might be a slow operation especially if text parsing involves OCR. Therefore, this method will fire the Operation event with DocumentViewerOperation.GetText. The application can intercept this event and show a busy dialog if required.

Refer to AutoGetText for more information.

Requirements

Target Platforms

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.Viewer.WinForms Assembly