GetPageText
IPDFDocument4 :: General document management :: Common

See Also
Collapse All

This method gets the specified PDF page's text as a single string.

Syntax

BSTR GetPageText (
LONG pageNumber
)
Parameters
pageNumber
The zero-based number of a PDF page

Return value

Text of the specified page as a single string

Remarks

The returned string contains the page's text lines united with the new line character ('\r\n').

Example.
Let's say that we have a PDF document with 2 pages.

Page 1:

Text11. Text12.
Text13.

Page 2:

Text21.
Text22.

Then the GetPageText method will return this string:

Text21.
Text22.

See Also

Reference