I’m using Slides for C++.
When I’m trying to decrypt a ppt file, it failed with System ArgumentOutOfRangeException index
I used this two methods: ProtectionManager.RemoveEncryption and ProtectionManager.RemoveWriteProtection
Test file: http://dl.05nx.com/aspose.test.ppt.error.7z
@kngstr,
This presentation was encrypted by password to open. Therefore, you have to know this password to load the presentation first:
auto loadOptions = System::MakeObject<LoadOptions>();
loadOptions->set_Password(u"my_password");
auto presentation = System::MakeObject<Presentation>(u"test.pptx", loadOptions);
Then you can be able to remove passwords to open and write protection.
It was encrypted by password to edit, not password to open.
It did can be decrypted with Slides for C++ SDK.
If I copy one page to a new file, it works fine.
But if I try to deal the 3 and 6 page, it failed with System::ArgumentOutOfRangeException::index.
@kngstr,
I am sorry for my mistake. I reproduced the problem with removing write protection and added a ticket with ID SLIDESCPP-3258 in our issue tracking system. Our development team will investigate this case. You will be notified when the issue is resolved.
@kngstr,
The issues you found earlier (filed as SLIDESCPP-3258) have been fixed in Aspose.Slides for C++ 24.2 (Windows, Linux, macOS).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.