## PdfFileEditor::Concatenate(const System::ArrayPtr\<System::SharedPtr\<Document\>\>\&, System::SharedPtr\<Document\>) method


Concatenates documents.

```cpp
bool Aspose::Pdf::Facades::PdfFileEditor::Concatenate(const System::ArrayPtr<System::SharedPtr<Document>> &src, System::SharedPtr<Document> dest)
```


| Parameter | Type | Description |
| --- | --- | --- |
| src | const System::ArrayPtr\<System::SharedPtr\<Document\>\>\& | Array of source documents. |
| dest | System::SharedPtr\<Document\> | Destination document. |

### ReturnValue

True if concatenation is successful.

## See Also

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Document](../../../aspose.pdf/document/)
* Class [PdfFileEditor](../)
* Namespace [Aspose::Pdf::Facades](../../)
* Library [Aspose.PDF for C++](../../../)
## PdfFileEditor::Concatenate(const System::ArrayPtr\<System::SharedPtr\<System::IO::Stream\>\>\&, const System::SharedPtr\<System::IO::Stream\>\&) method


Concatenates files.

```cpp
bool Aspose::Pdf::Facades::PdfFileEditor::Concatenate(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 was succeeded.

## See Also

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Stream](../../../system.io/stream/)
* Class [PdfFileEditor](../)
* Namespace [Aspose::Pdf::Facades](../../)
* Library [Aspose.PDF for C++](../../../)
## PdfFileEditor::Concatenate(const System::ArrayPtr\<System::SharedPtr\<System::IO::Stream\>\>\&, const System::SharedPtr\<System::Web::HttpResponse\>\&) method


Concatenates files and stores result into HttpResponse object.

```cpp
bool Aspose::Pdf::Facades::PdfFileEditor::Concatenate(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 was succeeded.

## See Also

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Stream](../../../system.io/stream/)
* Class [HttpResponse](../../../system.web/httpresponse/)
* Class [PdfFileEditor](../)
* Namespace [Aspose::Pdf::Facades](../../)
* Library [Aspose.PDF for C++](../../../)
## PdfFileEditor::Concatenate(const System::ArrayPtr\<System::String\>\&, const System::SharedPtr\<System::Web::HttpResponse\>\&) method


Concatenates files and saves reslt into HttpResposnse object.

```cpp
bool Aspose::Pdf::Facades::PdfFileEditor::Concatenate(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 concatenation was successful.

## See Also

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [HttpResponse](../../../system.web/httpresponse/)
* Class [PdfFileEditor](../)
* Namespace [Aspose::Pdf::Facades](../../)
* Library [Aspose.PDF for C++](../../../)
## PdfFileEditor::Concatenate(const System::ArrayPtr\<System::String\>\&, const System::String\&) method


Concatenates files into one file.

```cpp
bool Aspose::Pdf::Facades::PdfFileEditor::Concatenate(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 was succeeded.

## See Also

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [String](../../../system/string/)
* Class [PdfFileEditor](../)
* Namespace [Aspose::Pdf::Facades](../../)
* Library [Aspose.PDF for C++](../../../)
## PdfFileEditor::Concatenate(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](../../../aspose.pdf/) documents into a new [Pdf](../../../aspose.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](../../../aspose.pdf/) document will produce the result document with pages:p1, p1', p2, p2', p3, p3', p4, blankpage, p5, blankpage.

```cpp
bool Aspose::Pdf::Facades::PdfFileEditor::Concatenate(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](../../../aspose.pdf/) Stream. |
| secInputStream | const System::SharedPtr\<System::IO::Stream\>\& | The second [Pdf](../../../aspose.pdf/) Stream. |
| blankPageStream | const System::SharedPtr\<System::IO::Stream\>\& | The [Pdf](../../../aspose.pdf/) Stream with blank page. |
| outputStream | const System::SharedPtr\<System::IO::Stream\>\& | Output [Pdf](../../../aspose.pdf/) Stream. |

### ReturnValue

True if operation was succeeded.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Stream](../../../system.io/stream/)
* Class [PdfFileEditor](../)
* Namespace [Aspose::Pdf::Facades](../../)
* Library [Aspose.PDF for C++](../../../)
## PdfFileEditor::Concatenate(const System::SharedPtr\<System::IO::Stream\>\&, const System::SharedPtr\<System::IO::Stream\>\&, const System::SharedPtr\<System::IO::Stream\>\&) method


Concatenates two files.

```cpp
bool Aspose::Pdf::Facades::PdfFileEditor::Concatenate(const System::SharedPtr<System::IO::Stream> &firstInputStream, const System::SharedPtr<System::IO::Stream> &secInputStream, const System::SharedPtr<System::IO::Stream> &outputStream)
```


| Parameter | Type | Description |
| --- | --- | --- |
| firstInputStream | const System::SharedPtr\<System::IO::Stream\>\& | Stream of first file. |
| secInputStream | const System::SharedPtr\<System::IO::Stream\>\& | Stream of second file. |
| outputStream | const System::SharedPtr\<System::IO::Stream\>\& | Stream where result file will be stored. |

### ReturnValue

True if operation was succeeded.


## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Stream](../../../system.io/stream/)
* Class [PdfFileEditor](../)
* Namespace [Aspose::Pdf::Facades](../../)
* Library [Aspose.PDF for C++](../../../)
## PdfFileEditor::Concatenate(const System::String\&, const System::String\&, const System::String\&, const System::String\&) method


Merges two [Pdf](../../../aspose.pdf/) documents into a new [Pdf](../../../aspose.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](../../../aspose.pdf/) document will produce the result document with pages:p1, p1', p2, p2', p3, p3', p4, blankpage, p5, blankpage.

```cpp
bool Aspose::Pdf::Facades::PdfFileEditor::Concatenate(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 was succeeded.

## See Also

* Class [String](../../../system/string/)
* Class [PdfFileEditor](../)
* Namespace [Aspose::Pdf::Facades](../../)
* Library [Aspose.PDF for C++](../../../)
## PdfFileEditor::Concatenate(const System::String\&, const System::String\&, const System::String\&) method


Concatenates two files.

```cpp
bool Aspose::Pdf::Facades::PdfFileEditor::Concatenate(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 was succeeded.


## See Also

* Class [String](../../../system/string/)
* Class [PdfFileEditor](../)
* Namespace [Aspose::Pdf::Facades](../../)
* Library [Aspose.PDF for C++](../../../)
