## XpsDocument::Merge(System::ArrayPtr\<System::String\>, System::SharedPtr\<System::IO::Stream\>) method


Merging several [XPS](../../) files to one [XPS](../../) document.

```cpp
void Aspose::Page::XPS::XpsDocument::Merge(System::ArrayPtr<System::String> filesForMerge, System::SharedPtr<System::IO::Stream> outStream)
```


| Parameter | Type | Description |
| --- | --- | --- |
| filesForMerge | System::ArrayPtr\<System::String\> | [XPS](../../) files for merging with this document. |
| outStream | System::SharedPtr\<System::IO::Stream\> | The output stream where to save merged [XPS](../../) documents. |

## See Also

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Stream](../../../system.io/stream/)
* Class [XpsDocument](../)
* Namespace [Aspose::Page::XPS](../../)
* Library [Aspose.Page for C++](../../../)
## XpsDocument::Merge(System::ArrayPtr\<System::String\>, System::String) method


Merging several [XPS](../../) files to one [XPS](../../) document.

```cpp
void Aspose::Page::XPS::XpsDocument::Merge(System::ArrayPtr<System::String> filesForMerge, System::String outXpsFilePath)
```


| Parameter | Type | Description |
| --- | --- | --- |
| filesForMerge | System::ArrayPtr\<System::String\> | [XPS](../../) files for merging with this document. |
| outXpsFilePath | System::String | An output Xps file path. |

## See Also

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [String](../../../system/string/)
* Class [XpsDocument](../)
* Namespace [Aspose::Page::XPS](../../)
* Library [Aspose.Page for C++](../../../)
