## XpsDocument::MergeToPdf(System::ArrayPtr\<System::String\>, System::SharedPtr\<System::IO::Stream\>, System::SharedPtr\<Presentation::Pdf::PdfSaveOptions\>) method


Merging [XPS](../../) documents to PDF using the [Device](../) instance.

```cpp
void Aspose::Page::XPS::XpsDocument::MergeToPdf(System::ArrayPtr<System::String> filesForMerge, System::SharedPtr<System::IO::Stream> pdfStream, System::SharedPtr<Presentation::Pdf::PdfSaveOptions> options)
```


| Parameter | Type | Description |
| --- | --- | --- |
| filesForMerge | System::ArrayPtr\<System::String\> | [XPS](../../) files for merging with this document to an output device. |
| pdfStream | System::SharedPtr\<System::IO::Stream\> | An output PDF stream. |
| options | System::SharedPtr\<Presentation::Pdf::PdfSaveOptions\> | [Document](../../../aspose.page/document/) saving options. |

## See Also

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Stream](../../../system.io/stream/)
* Class [PdfSaveOptions](../../../aspose.page.xps.presentation.pdf/pdfsaveoptions/)
* Class [XpsDocument](../)
* Namespace [Aspose::Page::XPS](../../)
* Library [Aspose.Page for C++](../../../)
## XpsDocument::MergeToPdf(System::ArrayPtr\<System::String\>, System::String, System::SharedPtr\<Presentation::Pdf::PdfSaveOptions\>) method


Merging [XPS](../../) documents to PDF using the [Device](../) instance.

```cpp
void Aspose::Page::XPS::XpsDocument::MergeToPdf(System::ArrayPtr<System::String> filesForMerge, System::String outPdfFilePath, System::SharedPtr<Presentation::Pdf::PdfSaveOptions> options)
```


| Parameter | Type | Description |
| --- | --- | --- |
| filesForMerge | System::ArrayPtr\<System::String\> | [XPS](../../) files for merging with this document to an output device. |
| outPdfFilePath | System::String | An output PDF file path. |
| options | System::SharedPtr\<Presentation::Pdf::PdfSaveOptions\> | [Document](../../../aspose.page/document/) saving options. |

## See Also

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [PdfSaveOptions](../../../aspose.page.xps.presentation.pdf/pdfsaveoptions/)
* Class [XpsDocument](../)
* Namespace [Aspose::Page::XPS](../../)
* Library [Aspose.Page for C++](../../../)
