ppt资源:https://github.com/357809764/resource/blob/1dc2fe83297721f5c8a9dcb268c7b57697c01159/picture-error.zip
操作系统:windows 10
使用版本:aspose-slides-cpp-windows-22.8
示例代码:
auto pptFileStream = System::MakeObject<System::IO::FileStream>(filePath, System::IO::FileMode::Open, System::IO::FileAccess::Read, System::IO::FileShare::ReadWrite);
System::SharedPtr<Aspose::Slides::LoadOptions> loadOptions = System::MakeObject<Aspose::Slides::LoadOptions>();
loadOptions->set_OnlyLoadDocumentProperties(true);
System::SharedPtr<IBlobManagementOptions> blobManagementOptions = loadOptions->get_BlobManagementOptions();
blobManagementOptions->set_TempFilesRootPath(resourceManager.GetCacheDir());
blobManagementOptions->set_IsTemporaryFilesAllowed(true);
blobManagementOptions->set_MaxBlobsBytesInMemory(300 * 1024 * 1024);
blobManagementOptions->set_PresentationLockingBehavior(PresentationLockingBehavior::KeepLocked);
auto presentation = System::MakeObject<Aspose::Slides::Presentation>(pptFileStream, loadOptions);
调用最后一行时接口无返回