ToSvg()

Convert::ToSvg(System::String) method

Converts Presentation to SVG.

static void Aspose::Slides::LowCode::Convert::ToSvg(System::String presPath)

Arguments

ParameterTypeDescription
presPathSystem::StringPath of the input presentation

Remarks

Convert::ToSvg(u"pres.pptx");

Convert::ToSvg(System::String, Convert::GetOutPathCallback) method

Converts Presentation to SVG.

static void Aspose::Slides::LowCode::Convert::ToSvg(System::String presPath, Convert::GetOutPathCallback getOutPath)

Arguments

ParameterTypeDescription
presPathSystem::StringPath of the input presentation
getOutPathConvert::GetOutPathCallbackCallback that returns the SVG output path for each slide in the presentation

Remarks

auto callback = std::function<String(SharedPtr<Slide> slide, int32_t index)>([](SharedPtr<Slide> slide, int32_t index)
{
    return String::Format(u"pres_{0}-out.svg", index);
});

Convert::ToSvg(u"pres.pptx", callback);

Convert::ToSvg(System::SharedPtr<Presentation>, Convert::GetOutPathCallback) method

Converts Presentation to SVG.

static void Aspose::Slides::LowCode::Convert::ToSvg(System::SharedPtr<Presentation> pres, Convert::GetOutPathCallback getOutPath)

Arguments

ParameterTypeDescription
presSystem::SharedPtr<Presentation>Input presentation
getOutPathConvert::GetOutPathCallback>Callback that returns the SVG output path for each slide in the presentation

Remarks

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

auto callback = std::function<String(SharedPtr<Slide> slide, int32_t index)>([](SharedPtr<Slide> slide, int32_t index)
{
    return String::Format(u"pres_{0}-out.svg", index);
});

Convert::ToSvg(pres, callback);

Convert::ToSvg(System::SharedPtr<Presentation>, System::SharedPtr<Aspose::Slides::Export::ISVGOptions>) method

Converts Presentation to SVG.

static void Aspose::Slides::LowCode::Convert::ToSvg(System::SharedPtr<Presentation> pres, System::SharedPtr<Aspose::Slides::Export::ISVGOptions> options)

Arguments

ParameterTypeDescription
presSystem::SharedPtr<Presentation>Input presentation
optionsSystem::SharedPtr<Aspose::Slides::Export::ISVGOptions>SVG export options

Remarks

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

auto svgOptions = System::MakeObject<SVGOptions>();
svgOptions->set_VectorizeText(true);

Convert::ToSvg(pres, svgOptions);

Convert::ToSvg(System::SharedPtr<Presentation>, Convert::GetOutPathCallback, System::SharedPtr<Aspose::Slides::Export::ISVGOptions>) method

Converts Presentation to SVG.

static void Aspose::Slides::LowCode::Convert::ToSvg(System::SharedPtr<Presentation> pres, Convert::GetOutPathCallback getOutPath, System::SharedPtr<Aspose::Slides::Export::ISVGOptions> options)

Arguments

ParameterTypeDescription
presSystem::SharedPtr<Presentation>Input presentation
getOutPathConvert::GetOutPathCallbackCallback that returns the SVG output path for each slide in the presentation
optionsSystem::SharedPtr<Aspose::Slides::Export::ISVGOptions>SVG export options

Remarks

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

auto callback = std::function<String(SharedPtr<Slide> slide, int32_t index)>([](SharedPtr<Slide> slide, int32_t index)
{
    return String::Format(u"pres_{0}-out.svg", index);
});

auto svgOptions = System::MakeObject<SVGOptions>();
svgOptions->set_VectorizeText(true);

Convert::ToSvg(pres, callback, svgOptions);

See Also