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


يحفظ المستند بتنسيق PDF.

```cpp
void Aspose::Page::XPS::XpsDocument::SaveAsPdf(System::SharedPtr<System::IO::Stream> stream, System::SharedPtr<Presentation::Pdf::PdfSaveOptions> options)
```


| Parameter | Type | الوصف |
| --- | --- | --- |
| دفق | System::SharedPtr\<System::IO::Stream\> | المجرى لكتابة ملف PDF الناتج إليه. |
| خيارات | System::SharedPtr\<Presentation::Pdf::PdfSaveOptions\> | خيارات حفظ المستند بتنسيق PDF. |

## انظر أيضًا

* 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::SaveAsPdf(System::String, System::SharedPtr\<Presentation::Pdf::PdfSaveOptions\>) method


يحفظ المستند بتنسيق PDF.

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


| Parameter | Type | الوصف |
| --- | --- | --- |
| outPdfFilePath | System::String | مسار ملف PDF الناتج. |
| خيارات | System::SharedPtr\<Presentation::Pdf::PdfSaveOptions\> | خيارات حفظ المستند بتنسيق PDF. |

## انظر أيضًا

* 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++](../../../)
