set_DeleteEmbeddedBinaryObjects()
LoadOptions::set_DeleteEmbeddedBinaryObjects(bool) method
Determines if Aspose.Slides will delete all embedded binary objects while presentation loading.
void Aspose::Slides::LoadOptions::set_DeleteEmbeddedBinaryObjects(bool value) override
Remarks
The types of the embedded binary objects:
- VBA Project IPresentation::VbaProject
- OLE Object embedded data IOleEmbeddedDataInfo::get_EmbeddedFileData
- ActiveX Control binary data IControl::get_ActiveXControlBinary
Write bool.
Default is false.
The following example shows how to load the presentation without any embedded binary objects.
System::SharedPtr<LoadOptions> loadOptions = System::MakeObject<LoadOptions>();
loadOptions->set_DeleteEmbeddedBinaryObjects(true);
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>(u"pres.ppt", loadOptions);
pres->Save(u"output_WithoutBinaryObjects.ppt", SaveFormat::Ppt);
See Also
- Class LoadOptions
- Namespace Aspose::Slides
- Library Aspose.Slides