Link Search Menu Expand Document

DocumentSplitterSplit Method (String, String, String)

Splits PDF or TIFF document to multiple documents according to specified ranges.

Namespace:Bytescout.PDFExtractor
Assembly: Bytescout.PDFExtractor (in Bytescout.PDFExtractor.dll) Version: 13.2.1.4489-master
Syntax
public string[] Split(
	string sourceDocument,
	string ranges,
	string outputFolder
)

Parameters

sourceDocument
Type: SystemString
The source document.
ranges
Type: SystemString
Comma-separated list of page ranges in form "1-4,5,7,8-15,16-". Page numbers are 1-based. Ending "-" means "to the last page". You can also use inverted page numbers adding '!' before the number. E.g. "!1" means "the last page", "2-!2" means "from the second to the penultimate page", "!2-" - last two pages". Also, you can also use single asterisk "*" character as the range to split the document into separate pages.
outputFolder
Type: SystemString
Output folder for generated files.

Return Value

Type: String
List of files of generated document parts.

Implements

IDocumentSplitterSplit(String, String, String)
Remarks
If the output folder does not exist, the method will try to create it.
See Also

Reference


Copyright © 2016 - 2023 ByteScout