Aspose::Pdf::Facades::PdfFileEditor::TryConcatenate method

PdfFileEditor::TryConcatenate(System::ArrayPtr<System::SharedPtr<Document>>, System::SharedPtr<Document>) method

Concatenates documents.

bool Aspose::Pdf::Facades::PdfFileEditor::TryConcatenate(System::ArrayPtr<System::SharedPtr<Document>> src, System::SharedPtr<Document> dest)
ParameterTypeDescription
srcSystem::ArrayPtr<System::SharedPtr<Document>>Array of source documents.
destSystem::SharedPtr<Document>Destination document.

ReturnValue

true if operation completed successfully; otherwise, false.

Remarks

The TryConcatenate method is like the Concatenate method, except the TryConcatenate method does not throw an exception if the operation fails.

See Also

PdfFileEditor::TryConcatenate(System::ArrayPtr<System::SharedPtr<System::IO::Stream>>, System::SharedPtr<System::IO::Stream>) method

Concatenates files.

bool Aspose::Pdf::Facades::PdfFileEditor::TryConcatenate(System::ArrayPtr<System::SharedPtr<System::IO::Stream>> inputStream, System::SharedPtr<System::IO::Stream> outputStream)
ParameterTypeDescription
inputStreamSystem::ArrayPtr<System::SharedPtr<System::IO::Stream>>Array of streams to be concatenated.
outputStreamSystem::SharedPtr<System::IO::Stream>Stream where result file will be stored.

ReturnValue

true if operation completed successfully; otherwise, false.

Remarks

The TryConcatenate method is like the Concatenate method, except the TryConcatenate method does not throw an exception if the operation fails.

See Also

PdfFileEditor::TryConcatenate(System::ArrayPtr<System::SharedPtr<System::IO::Stream>>, System::SharedPtr<System::Web::HttpResponse>) method

Concatenates files and stores result into HttpResponse object.

bool Aspose::Pdf::Facades::PdfFileEditor::TryConcatenate(System::ArrayPtr<System::SharedPtr<System::IO::Stream>> inputStream, System::SharedPtr<System::Web::HttpResponse> response)
ParameterTypeDescription
inputStreamSystem::ArrayPtr<System::SharedPtr<System::IO::Stream>>Streams array which contain files to concatenate.
responseSystem::SharedPtr<System::Web::HttpResponse>Response object/

ReturnValue

true if operation completed successfully; otherwise, false.

Remarks

The TryConcatenate method is like the Concatenate method, except the TryConcatenate method does not throw an exception if the operation fails.

See Also

PdfFileEditor::TryConcatenate(System::ArrayPtr<System::String>, System::SharedPtr<System::Web::HttpResponse>) method

Concatenates files and saves reslt into HttpResposnse object.

bool Aspose::Pdf::Facades::PdfFileEditor::TryConcatenate(System::ArrayPtr<System::String> inputFiles, System::SharedPtr<System::Web::HttpResponse> response)
ParameterTypeDescription
inputFilesSystem::ArrayPtr<System::String>Array of files to concatenate.
responseSystem::SharedPtr<System::Web::HttpResponse>Response object.

ReturnValue

true if operation completed successfully; otherwise, false.

Remarks

The TryConcatenate method is like the Concatenate method, except the TryConcatenate method does not throw an exception if the operation fails.

See Also

PdfFileEditor::TryConcatenate(System::ArrayPtr<System::String>, System::String) method

Concatenates files into one file.

bool Aspose::Pdf::Facades::PdfFileEditor::TryConcatenate(System::ArrayPtr<System::String> inputFiles, System::String outputFile)
ParameterTypeDescription
inputFilesSystem::ArrayPtr<System::String>Array of files to concatenate.
outputFileSystem::StringName of output file.

ReturnValue

true if operation completed successfully; otherwise, false.

Remarks

The TryConcatenate method is like the Concatenate method, except the TryConcatenate method does not throw an exception if the operation fails.

See Also

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

Merges two Pdf documents into a new Pdf document with pages in alternate ways and fill the blank places with blank pages. e.g.: document1 has 5 pages: p1, p2, p3, p4, p5. document2 has 3 pages: p1’, p2’, p3’. Merging the two Pdf document will produce the result document with pages:p1, p1’, p2, p2’, p3, p3’, p4, blankpage, p5, blankpage.

bool Aspose::Pdf::Facades::PdfFileEditor::TryConcatenate(System::SharedPtr<System::IO::Stream> firstInputStream, System::SharedPtr<System::IO::Stream> secInputStream, System::SharedPtr<System::IO::Stream> blankPageStream, System::SharedPtr<System::IO::Stream> outputStream)
ParameterTypeDescription
firstInputStreamSystem::SharedPtr<System::IO::Stream>The first Pdf Stream.
secInputStreamSystem::SharedPtr<System::IO::Stream>The second Pdf Stream.
blankPageStreamSystem::SharedPtr<System::IO::Stream>The Pdf Stream with blank page.
outputStreamSystem::SharedPtr<System::IO::Stream>Output Pdf Stream.

ReturnValue

true if operation completed successfully; otherwise, false.

Remarks

The TryConcatenate method is like the Concatenate method, except the TryConcatenate method does not throw an exception if the operation fails.

See Also

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

Merges two Pdf documents into a new Pdf document with pages in alternate ways and fill the blank places with blank pages. e.g.: document1 has 5 pages: p1, p2, p3, p4, p5. document2 has 3 pages: p1’, p2’, p3’. Merging the two Pdf document will produce the result document with pages:p1, p1’, p2, p2’, p3, p3’, p4, blankpage, p5, blankpage.

bool Aspose::Pdf::Facades::PdfFileEditor::TryConcatenate(System::String firstInputFile, System::String secInputFile, System::String blankPageFile, System::String outputFile)
ParameterTypeDescription
firstInputFileSystem::StringFirst file.
secInputFileSystem::StringSecond file.
blankPageFileSystem::StringPDF file with blank page.
outputFileSystem::StringResult file.

ReturnValue

true if operation completed successfully; otherwise, false.

Remarks

The TryConcatenate method is like the Concatenate method, except the TryConcatenate method does not throw an exception if the operation fails.

See Also

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

Concatenates two files.

bool Aspose::Pdf::Facades::PdfFileEditor::TryConcatenate(System::String firstInputFile, System::String secInputFile, System::String outputFile)
ParameterTypeDescription
firstInputFileSystem::StringFirst file to concatenate.
secInputFileSystem::StringSecond file to concatenate.
outputFileSystem::StringOutput file.

ReturnValue

true if operation completed successfully; otherwise, false.

Remarks

The TryConcatenate method is like the Concatenate method, except the TryConcatenate method does not throw an exception if the operation fails.

See Also