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

PdfFileEditor::SplitToPages(const 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(const System::SharedPtr<System::IO::Stream> &inputStream)
ParameterTypeDescription
inputStreamconst System::SharedPtr<System::IO::Stream>&Input Pdf stream.

ReturnValue

Array of memory streams which contain pages of the document.

See Also

PdfFileEditor::SplitToPages(const System::SharedPtr<System::IO::Stream>&, const 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(const System::SharedPtr<System::IO::Stream> &inputStream, const System::String &fileNameTemplate)
ParameterTypeDescription
inputStreamconst System::SharedPtr<System::IO::Stream>&Stream of the soruce document.
fileNameTemplateconst System::String&Template 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(const System::String&) method

Splits the PDF file into single-page documents.

System::ArrayPtr<System::SharedPtr<System::IO::MemoryStream>> Aspose::Pdf::Facades::PdfFileEditor::SplitToPages(const System::String &inputFile)
ParameterTypeDescription
inputFileconst System::String&Input PDF file name.

ReturnValue

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

See Also

PdfFileEditor::SplitToPages(const System::String&, const 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(const System::String &inputFile, const System::String &fileNameTemplate)
ParameterTypeDescription
inputFileconst System::String&Input file name.
fileNameTemplateconst System::String&Template 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