Click or drag to resize

PdfToTextConverterConvertToTextPages(Stream) Method

Extracts the text of a PDF document stream page by page: one string for each page, in one call.

Namespace: ExpertPdf.Anywhere
Assembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntax
public string[] ConvertToTextPages(
	Stream pdfStream
)

Parameters

pdfStream  Stream
The binary stream providing the PDF document bytes. It can be for example a FileStream or a MemoryStream over the PDF document bytes.

Return Value

String
The text of each page: the first entry is the text of the StartPageNumber page, the last one the text of the EndPageNumber page (or of the last page of the document when EndPageNumber is 0). A page without text gives an empty string.
Remarks
The text is extracted with the Layout and ClipText options. The MarkPageBreaks and AddHtmlMetaTags options are not used: each entry is the plain text of one page.
See Also