convertToTextString
Convert pages to text and return a string.
convertToTextString([in] int firstPage, [in] int lastPage, [out, retval] BSTR *text)
This function converts the specified range of pages
(
firstPage
through lastPage
) to text, and
returns the resulting text in a string.
If lastPage
is -1, this function will convert up to the
last page in the PDF file. (See also numPages
.)
convertToTextString
throws an error if text extraction is
prohibited by this PDF file.
This function is identical to convertToTextFile
except that it
extracts to a string in memory rather than to a file on disk.
See the "Setting parameters" section in the function list for settings that affect text extraction.
VB:
Dim s As String
s = pdf.convertToTextString(1, n)