## PsDocument::SaveAsPdf(System::SharedPtr\<System::IO::Stream\>, System::SharedPtr\<Device::PdfSaveOptions\>) method


Saves PS/EPS file to PDF stream.

```cpp
void Aspose::Page::EPS::PsDocument::SaveAsPdf(System::SharedPtr<System::IO::Stream> pdfStream, System::SharedPtr<Device::PdfSaveOptions> options)
```


| Parameter | Type | Description |
| --- | --- | --- |
| pdfStream | System::SharedPtr\<System::IO::Stream\> | An output PDF stream. |
| options | System::SharedPtr\<Device::PdfSaveOptions\> | Contains flags that specify output of errors thrown during conversion. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Stream](../../../system.io/stream/)
* Class [PdfSaveOptions](../../../aspose.page.eps.device/pdfsaveoptions/)
* Class [PsDocument](../)
* Namespace [Aspose::Page::EPS](../../)
* Library [Aspose.Page for C++](../../../)
## PsDocument::SaveAsPdf(System::String, System::SharedPtr\<Device::PdfSaveOptions\>) method


Saves PS/EPS file to PDF file.

```cpp
void Aspose::Page::EPS::PsDocument::SaveAsPdf(System::String outPdfFilePath, System::SharedPtr<Device::PdfSaveOptions> options)
```


| Parameter | Type | Description |
| --- | --- | --- |
| outPdfFilePath | System::String | An output PDF file path. |
| options | System::SharedPtr\<Device::PdfSaveOptions\> | Contains flags that specify output of errors thrown during conversion. |

## See Also

* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [PdfSaveOptions](../../../aspose.page.eps.device/pdfsaveoptions/)
* Class [PsDocument](../)
* Namespace [Aspose::Page::EPS](../../)
* Library [Aspose.Page for C++](../../../)
