ComPdfUtilSplit Method

Printer API Documentation
Split a PDF file into one file per page.

Namespace:  pdf7.PdfWriter
Assembly:  pdf7.PdfWriter (in pdf7.PdfWriter.dll) Version: 4.0.0.0 (4.0.1000.111)
Syntax

public int Split(
	string inputFileName,
	string outputFileName,
	int firstPage,
	int lastPage,
	string printerName,
	int timeoutMilliseconds
)

Parameters

inputFileName
Type: SystemString
PDF file to split
outputFileName
Type: SystemString
File name and path for output. The file name must contain the %lt;pageno> tag to specify the place for page number.
firstPage
Type: SystemInt32
First page to extract. A value of 0 (zero) means the beginning of the file.
lastPage
Type: SystemInt32
Last page to extract. A value of 0 (zero) means the end of the file.
printerName
Type: SystemString
Name of PDF printer.
timeoutMilliseconds
Type: SystemInt32
Timeout in milliseconds for external processes launched during the merge operation.

Return Value

Type: Int32
Returns the number of pages in the result of the operation.
See Also

Reference