ToPdf()

Convert::ToPdf(System::String, System::String) method

Converts Presentation to PDF.

static void Aspose::Slides::LowCode::Convert::ToPdf(System::String presPath, System::String outPath)

Arguments

ParameterTypeDescription
presPathSystem::StringPath of the input presentation
outPathSystem::StringOutput path

Remarks

Convert::ToPdf(u"pres.pptx", u"pres.pdf");

Convert::ToPdf(System::String, System::String, System::SharedPtr<Aspose::Slides::Export::IPdfOptions>) method

Converts Presentation to PDF.

static void Aspose::Slides::LowCode::Convert::ToPdf(System::String presPath, System::String outPath, System::SharedPtr<Aspose::Slides::Export::IPdfOptions> options)

Arguments

ParameterTypeDescription
presPathSystem::StringPath of the input presentation
outPathSystem::StringOutput path
optionsSystem::SharedPtr<Aspose::Slides::Export::IPdfOptions>Output PDF options

Remarks

auto pdfOptions = System::MakeObject<PdfOptions>();
pdfOptions->set_Compliance(PdfCompliance::PdfUa);

Convert::ToPdf(u"pres.pptx", u"pres.pdf", pdfOptions);

Convert::ToPdf(System::SharedPtr<Presentation>, System::String) method

Converts Presentation to PDF.

static void Aspose::Slides::LowCode::Convert::ToPdf(System::SharedPtr<Presentation> pres, System::String outPath)

Arguments

ParameterTypeDescription
presSystem::SharedPtr<Presentation>Input presentation
outPathSystem::StringOutput path

Remarks

auto pres = System::MakeObject<Presentation>(u"input.pptx");

Convert::ToPdf(pres, u"output.pdf");

Convert::ToPdf(System::SharedPtr<Presentation>, System::String, System::SharedPtr<Aspose::Slides::Export::IPdfOptions>) method

Converts Presentation to PDF.

static void Aspose::Slides::LowCode::Convert::ToPdf(System::SharedPtr<Presentation> pres, System::String outPath, System::SharedPtr<Aspose::Slides::Export::IPdfOptions> options)

Arguments

ParameterTypeDescription
presSystem::SharedPtr<Presentation>Input presentation
outPathSystem::StringOutput path
optionsSystem::SharedPtr<Aspose::Slides::Export::IPdfOptions>Output PDF options

Remarks

auto pres = System::MakeObject<Presentation>(u"input.pptx");
auto pdfOptions = System::MakeObject<PdfOptions>();
pdfOptions->set_Compliance(PdfCompliance::PdfUa);

Convert::ToPdf(pres, u"output.pdf", pdfOptions);

See Also