GetDocumentText
IPDFDocument4 :: General document management :: Common

See Also
Collapse All

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

Syntax

BSTR GetDocumentText ()
Return value
Single string containing the PDF document's text

Remarks

The returned string contains the document's text lines united with the double new line character ("\r\n\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 GetDocumentText method will return this string:

Text11. Text12.
Text13.

Text21.
Text22.

See Also

Reference