PdfFileEditor.SplitToPages

SplitToPages(string)

Splits the PDF file into single-page documents.

public MemoryStream[] SplitToPages(string inputFile)
ParameterTypeDescription
inputFileStringInput PDF file name.

Return Value

Output PDF streams, each stream buffers a single-page PDF document.

See Also


SplitToPages(Stream)

Splits the Pdf file into single-page documents.

public MemoryStream[] SplitToPages(Stream inputStream)
ParameterTypeDescription
inputStreamStreamInput Pdf stream.

Return Value

Array of memory streams which contain pages of the document.

See Also


SplitToPages(string, string)

Split the Pdf file into single-page documents and saves it into specified path. Path is specifield by field name temaplate.

public void SplitToPages(string inputFile, string fileNameTemplate)
ParameterTypeDescription
inputFileStringInput file name.
fileNameTemplateStringTemplate of resultant file name. Must contain %NUM% which is replaced with page number. For example, if c:/dir/page%NUM%.pdf is specified, resultant files will have the following names: c:/dir/page1.pdf, c:/dir/page2.pdf etc.

See Also


SplitToPages(Stream, string)

Split the Pdf file into single-page documents and saves it into specified path. Path is specifield by field name temaplate.

public void SplitToPages(Stream inputStream, string fileNameTemplate)
ParameterTypeDescription
inputStreamStreamStream of the soruce document.
fileNameTemplateStringTemplate of resultant file name. Must contain %NUM% which is replaced with page number. For example, if c:/dir/page%NUM%.pdf is specified, resultant files will have the following names: c:/dir/page1.pdf, c:/dir/page2.pdf etc.

See Also