- Code: Select all
[main] INFO org.docx4j.openpackaging.packages.OpcPackage - Detected compound file
Exception in thread "main" org.docx4j.openpackaging.exceptions.Docx4JException: This file seems to be a binary doc/ppt/xls, not an encrypted OLE2 file containing a doc/pptx/xlsx
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:623)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:425)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:298)
at org.docx4j.openpackaging.packages.OpcPackage.load(OpcPackage.java:276)
at org.docx4j.openpackaging.packages.WordprocessingMLPackage.load(WordprocessingMLPackage.java:170)
at sdeal.maventest.App.main(App.java:27)
From looking at the docx4j code, it looks like it identifies the document as encrypted and attempts to get the EncryptionInfo entry from it, but documents encrypted via sensitivity labels do not have this entry from what I can tell.
Is there any way I could open this file using docx4j? Given how these labels tie into Microsoft Purview and Azure, I'm not optimistic, but I figured I would at least ask. I've attached a test document that I've reproduced the issue with.
Thanks,
-Sean

