Aspose::Pdf::Facades::PdfFileEditor::SplitToPages method

PdfFileEditor::SplitToPages(System::SharedPtr<System::IO::Stream>) method

Splits the Pdf file into single-page documents.

System::ArrayPtr<System::SharedPtr<System::IO::MemoryStream>> Aspose::Pdf::Facades::PdfFileEditor::SplitToPages(System::SharedPtr<System::IO::Stream> inputStream)
ParameterTypeDescription
inputStreamSystem::SharedPtr<System::IO::Stream>Input Pdf stream.

ReturnValue

Array of memory streams which contain pages of the document.

See Also

PdfFileEditor::SplitToPages(System::SharedPtr<System::IO::Stream>, System::String) method

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

void Aspose::Pdf::Facades::PdfFileEditor::SplitToPages(System::SharedPtr<System::IO::Stream> inputStream, System::String fileNameTemplate)
ParameterTypeDescription
inputStreamSystem::SharedPtr<System::IO::Stream>Stream of the soruce document.
fileNameTemplateSystem::StringTemplate of resultant file name. Must contain NUM% which is replaced with page number. For example, if c:/dir/pageNUM%.pdf is specified, resultant files will have the following names: c:/dir/page1.pdf, c:/dir/page2.pdf etc.

See Also

PdfFileEditor::SplitToPages(System::String) method

Splits the PDF file into single-page documents.

System::ArrayPtr<System::SharedPtr<System::IO::MemoryStream>> Aspose::Pdf::Facades::PdfFileEditor::SplitToPages(System::String inputFile)
ParameterTypeDescription
inputFileSystem::StringInput PDF file name.

ReturnValue

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

See Also

PdfFileEditor::SplitToPages(System::String, System::String) method

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

void Aspose::Pdf::Facades::PdfFileEditor::SplitToPages(System::String inputFile, System::String fileNameTemplate)
ParameterTypeDescription
inputFileSystem::StringInput file name.
fileNameTemplateSystem::StringTemplate of resultant file name. Must contain NUM% which is replaced with page number. For example, if c:/dir/pageNUM%.pdf is specified, resultant files will have the following names: c:/dir/page1.pdf, c:/dir/page2.pdf etc.

See Also