## PsDocument::MergeToPdf(System::SharedPtr\<System::IO::Stream\>, System::ArrayPtr\<System::String\>, System::SharedPtr\<SaveOptions\>) method


Merges PS/EPS files to a device.

```cpp
void Aspose::Page::EPS::PsDocument::MergeToPdf(System::SharedPtr<System::IO::Stream> pdfStream, System::ArrayPtr<System::String> filesForMerge, System::SharedPtr<SaveOptions> options)
```


| Parameter | Type | Description |
| --- | --- | --- |
| filesForMerge | System::SharedPtr\<System::IO::Stream\> | PS/EPS files for merging with this file to an output device. |
| pdfStream | System::ArrayPtr\<System::String\> | An output PDF stream. |
| options | System::SharedPtr\<SaveOptions\> | Contains flags that specify output of errors thrown during conversion. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Stream](../../../system.io/stream/)
* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [String](../../../system/string/)
* Class [SaveOptions](../../../aspose.page/saveoptions/)
* Class [PsDocument](../)
* Namespace [Aspose::Page::EPS](../../)
* Library [Aspose.Page for C++](../../../)
## PsDocument::MergeToPdf(System::String, System::ArrayPtr\<System::String\>, System::SharedPtr\<SaveOptions\>) method


Merges PS/EPS files to a device.

```cpp
void Aspose::Page::EPS::PsDocument::MergeToPdf(System::String outPdfFilePath, System::ArrayPtr<System::String> filesForMerge, System::SharedPtr<SaveOptions> options)
```


| Parameter | Type | Description |
| --- | --- | --- |
| filesForMerge | System::String | PS/EPS files for merging with this file to an output device. |
| outPdfFilePath | System::ArrayPtr\<System::String\> | An output PDF file path. |
| options | System::SharedPtr\<SaveOptions\> | Contains flags that specify output of errors thrown during conversion. |

## See Also

* Class [String](../../../system/string/)
* Typedef [ArrayPtr](../../../system/arrayptr/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [SaveOptions](../../../aspose.page/saveoptions/)
* Class [PsDocument](../)
* Namespace [Aspose::Page::EPS](../../)
* Library [Aspose.Page for C++](../../../)
