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


Guarda el documento en formato PDF.

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| flujo | System::SharedPtr\<System::IO::Stream\> | El flujo donde escribir el archivo PDF de salida. |
| opciones | System::SharedPtr\<Presentation::Pdf::PdfSaveOptions\> | Opciones para guardar el documento en formato PDF. |

## Ver también

* 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


Guarda el documento en formato PDF.

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| outPdfFilePath | System::String | Una ruta de archivo PDF de salida. |
| opciones | System::SharedPtr\<Presentation::Pdf::PdfSaveOptions\> | Opciones para guardar el documento en formato PDF. |

## Ver también

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