Currently, PPTX files that are protected by Azure Rights Management (RMS) cannot be opened by the library (as of version 0.6.23). Attempting to open such a file throws pptx.exc.PackageNotFoundError: Package not found at 'my_file.pptx' in _PhysPkgReader.factory(), because such PPTX file is not a ZIP file.
The file starts with the byte sequence: d0cf11e0a1b11ae1..., indicating it probably is a CFBF file. I was able to open it using version 0.3 of the compoundfiles library, with the following result:
As far as I can tell, in an IT environment that uses RMS, PowerPoint from Office 365 saves either standard PPTX files or these encrypted PPTX files based on selected confidentiality level for the document. From Office's point of view, it's handled transparently, I've only run into the difference when trying to edit the file using this library or open it in OpenOffice/LibreOffice (which also doesn't work).
Currently, PPTX files that are protected by Azure Rights Management (RMS) cannot be opened by the library (as of version 0.6.23). Attempting to open such a file throws
pptx.exc.PackageNotFoundError: Package not found at 'my_file.pptx'
in_PhysPkgReader.factory()
, because such PPTX file is not a ZIP file.The file starts with the byte sequence:
d0cf11e0a1b11ae1...
, indicating it probably is a CFBF file. I was able to open it using version 0.3 of the compoundfiles library, with the following result:As far as I can tell, in an IT environment that uses RMS, PowerPoint from Office 365 saves either standard PPTX files or these encrypted PPTX files based on selected confidentiality level for the document. From Office's point of view, it's handled transparently, I've only run into the difference when trying to edit the file using this library or open it in OpenOffice/LibreOffice (which also doesn't work).
Microsoft apparently provides Information Protection SDK that may be able to help.