## XpsDocument::SaveAsPs(System::SharedPtr\<System::IO::Stream\>, System::SharedPtr\<EPS::Device::PsSaveOptions\>) method


Saves the document in PS format.

```cpp
void Aspose::Page::XPS::XpsDocument::SaveAsPs(System::SharedPtr<System::IO::Stream> stream, System::SharedPtr<EPS::Device::PsSaveOptions> options)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | System::SharedPtr\<System::IO::Stream\> | The stream to write the output PS file to. |
| options | System::SharedPtr\<EPS::Device::PsSaveOptions\> | Options for saving the document in PS format. |

## See Also

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


Saves the document in PS format.

```cpp
void Aspose::Page::XPS::XpsDocument::SaveAsPs(System::String outPsFilePath, System::SharedPtr<EPS::Device::PsSaveOptions> options)
```


| Parameter | Type | Description |
| --- | --- | --- |
| outPsFilePath | System::String | An output PS file path. |
| options | System::SharedPtr\<EPS::Device::PsSaveOptions\> | Options for saving the document in PS format. |

## See Also

* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [PsSaveOptions](../../../aspose.page.eps.device/pssaveoptions/)
* Class [XpsDocument](../)
* Namespace [Aspose::Page::XPS](../../)
* Library [Aspose.Page for C++](../../../)
