WriteAsSvg()
Contents
[
Hide
]Slide::WriteAsSvg(System::SharedPtr<System::IO::Stream>) method
Saves the slide content as an SVG file.
void Aspose::Slides::Slide::WriteAsSvg(System::SharedPtr<System::IO::Stream> stream) override
Arguments
Parameter | Type | Description |
---|---|---|
stream | System::SharedPtr<System::IO::Stream> | Target stream |
Remarks
The following code example demonstrates how to convert the first slide from a PowerPoint presentation into an SVG file.
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>(u"pres.pptx");
System::SharedPtr<System::IO::Stream> fileStream = System::IO::File::Create(u"slide_1.svg");
// Saves the first slide as an SVG file
pres->get_Slide(0)->WriteAsSvg(fileStream);
Slide::WriteAsSvg(System::SharedPtr<System::IO::Stream>, System::SharedPtr<Export::ISVGOptions>) method
Saves the slide content as an SVG file.
void Aspose::Slides::Slide::WriteAsSvg(System::SharedPtr<System::IO::Stream> stream, System::SharedPtr<Export::ISVGOptions> svgOptions) override
Arguments
Parameter | Type | Description |
---|---|---|
stream | System::SharedPtr<System::IO::Stream> | Target stream |
svgOptions | System::SharedPtr<Export::ISVGOptions> | SVG generation options |
Remarks
The following code example demonstrates how to convert the first slide from a PowerPoint presentation into an SVG file with options.
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>(u"pres.pptx");
System::SharedPtr<System::IO::Stream> fileStream = System::IO::File::Create(u"slide_1.svg");
auto options = System::MakeObject<SVGOptions>();
options->set_VectorizeText(true);
// Saves the first slide as an SVG file
pres->get_Slide(0)->WriteAsSvg(fileStream, options);
See Also
- Typedef SharedPtr
- Class Stream
- Class Slide
- Class ISVGOptions
- Namespace Aspose::Slides
- Library Aspose.Slides