Aspose::Pdf::Facades::PdfFileEditor::TryConcatenate method
PdfFileEditor::TryConcatenate(const System::ArrayPtr<System::SharedPtr<Document>>&, const System::SharedPtr<Document>&) method
Concatenates documents.
bool Aspose::Pdf::Facades::PdfFileEditor::TryConcatenate(const System::ArrayPtr<System::SharedPtr<Document>> &src, const System::SharedPtr<Document> &dest)
| Parameter | Type | Description |
|---|---|---|
| src | const System::ArrayPtr<System::SharedPtr<Document>>& | Array of source documents. |
| dest | const System::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
- Typedef ArrayPtr
- Typedef SharedPtr
- Class Document
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::TryConcatenate(const System::ArrayPtr<System::SharedPtr<System::IO::Stream>>&, const System::SharedPtr<System::IO::Stream>&) method
Concatenates files.
bool Aspose::Pdf::Facades::PdfFileEditor::TryConcatenate(const System::ArrayPtr<System::SharedPtr<System::IO::Stream>> &inputStream, const System::SharedPtr<System::IO::Stream> &outputStream)
| Parameter | Type | Description |
|---|---|---|
| inputStream | const System::ArrayPtr<System::SharedPtr<System::IO::Stream>>& | Array of streams to be concatenated. |
| outputStream | const System::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
- Typedef ArrayPtr
- Typedef SharedPtr
- Class Stream
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::TryConcatenate(const System::ArrayPtr<System::SharedPtr<System::IO::Stream>>&, const System::SharedPtr<System::Web::HttpResponse>&) method
Concatenates files and stores result into HttpResponse object.
bool Aspose::Pdf::Facades::PdfFileEditor::TryConcatenate(const System::ArrayPtr<System::SharedPtr<System::IO::Stream>> &inputStream, const System::SharedPtr<System::Web::HttpResponse> &response)
| Parameter | Type | Description |
|---|---|---|
| inputStream | const System::ArrayPtr<System::SharedPtr<System::IO::Stream>>& | Streams array which contain files to concatenate. |
| response | const System::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
- Typedef ArrayPtr
- Typedef SharedPtr
- Class Stream
- Class HttpResponse
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::TryConcatenate(const System::ArrayPtr<System::String>&, const System::SharedPtr<System::Web::HttpResponse>&) method
Concatenates files and saves reslt into HttpResposnse object.
bool Aspose::Pdf::Facades::PdfFileEditor::TryConcatenate(const System::ArrayPtr<System::String> &inputFiles, const System::SharedPtr<System::Web::HttpResponse> &response)
| Parameter | Type | Description |
|---|---|---|
| inputFiles | const System::ArrayPtr<System::String>& | Array of files to concatenate. |
| response | const System::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
- Typedef ArrayPtr
- Class String
- Typedef SharedPtr
- Class HttpResponse
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::TryConcatenate(const System::ArrayPtr<System::String>&, const System::String&) method
Concatenates files into one file.
bool Aspose::Pdf::Facades::PdfFileEditor::TryConcatenate(const System::ArrayPtr<System::String> &inputFiles, const System::String &outputFile)
| Parameter | Type | Description |
|---|---|---|
| inputFiles | const System::ArrayPtr<System::String>& | Array of files to concatenate. |
| outputFile | const System::String& | Name 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
- Typedef ArrayPtr
- Class String
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::TryConcatenate(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<System::IO::Stream>&, const 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(const System::SharedPtr<System::IO::Stream> &firstInputStream, const System::SharedPtr<System::IO::Stream> &secInputStream, const System::SharedPtr<System::IO::Stream> &blankPageStream, const System::SharedPtr<System::IO::Stream> &outputStream)
| Parameter | Type | Description |
|---|---|---|
| firstInputStream | const System::SharedPtr<System::IO::Stream>& | The first Pdf Stream. |
| secInputStream | const System::SharedPtr<System::IO::Stream>& | The second Pdf Stream. |
| blankPageStream | const System::SharedPtr<System::IO::Stream>& | The Pdf Stream with blank page. |
| outputStream | const System::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
- Typedef SharedPtr
- Class Stream
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::TryConcatenate(const System::String&, const System::String&, const System::String&, const 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(const System::String &firstInputFile, const System::String &secInputFile, const System::String &blankPageFile, const System::String &outputFile)
| Parameter | Type | Description |
|---|---|---|
| firstInputFile | const System::String& | First file. |
| secInputFile | const System::String& | Second file. |
| blankPageFile | const System::String& | PDF file with blank page. |
| outputFile | const System::String& | Result 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
- Class String
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::TryConcatenate(const System::String&, const System::String&, const System::String&) method
Concatenates two files.
bool Aspose::Pdf::Facades::PdfFileEditor::TryConcatenate(const System::String &firstInputFile, const System::String &secInputFile, const System::String &outputFile)
| Parameter | Type | Description |
|---|---|---|
| firstInputFile | const System::String& | First file to concatenate. |
| secInputFile | const System::String& | Second file to concatenate. |
| outputFile | const System::String& | 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
- Class String
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++