Link Search Menu Expand Document

DocumentParserParseDocumentPageRange Method (Stream, String, Stream, OutputFormat, CSVOptions)

Process a part of the document.

Namespace:ByteScout.DocumentParser
Assembly: ByteScout.DocumentParser (in ByteScout.DocumentParser.dll) Version: 6.4.1.617-master
Syntax
public bool ParseDocumentPageRange(
	Stream inputStream,
	string ranges,
	Stream outputStream,
	OutputFormat outputFormat = OutputFormat.JSON,
	CSVOptions csvOptions = null
)

Parameters

inputStream
Type: System.IOStream
Input document stream.
ranges
Type: SystemString
Comma-separated list of page ranges in form "0-3,5,7-8,10-". Page indices are 0-based. Ending "-" means "to the last page". You can also use inverted page numbers adding '!' before the number. E.g. "!0" means "the last page", "1-!1" means "from the second to the penultimate page", "!1-" - last two pages".
outputStream
Type: System.IOStream
Output stream.
outputFormat (Optional)
Type: ByteScout.DocumentParserOutputFormat
Output data format.
csvOptions (Optional)
Type: ByteScout.DocumentParserCSVOptions
CSV format options.

Return Value

Type: Boolean
Returns true if the document is matched a template and parsed successfully; otherwise false.
See Also

Reference