ToSvg()
Contents
[
Hide
]Convert::ToSvg(System::String) method
Converts Presentation to SVG.
static void Aspose::Slides::LowCode::Convert::ToSvg(System::String presPath)
Arguments
Parameter | Type | Description |
---|---|---|
presPath | System::String | Path 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
Parameter | Type | Description |
---|---|---|
presPath | System::String | Path of the input presentation |
getOutPath | Convert::GetOutPathCallback | Callback 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
Parameter | Type | Description |
---|---|---|
pres | System::SharedPtr<Presentation> | Input presentation |
getOutPath | Convert::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
Parameter | Type | Description |
---|---|---|
pres | System::SharedPtr<Presentation> | Input presentation |
options | System::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
Parameter | Type | Description |
---|---|---|
pres | System::SharedPtr<Presentation> | Input presentation |
getOutPath | Convert::GetOutPathCallback | Callback that returns the SVG output path for each slide in the presentation |
options | System::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
- Typedef GetOutPathCallback
- Typedef SharedPtr
- Class String
- Class Convert
- Class Presentation
- Class ISVGOptions
- Namespace Aspose::Slides::LowCode
- Library Aspose.Slides