Support for PDF conversion of documents (Word and Excel) protected with Microsoft Azure Information Protection

From a topic from September 2018 (Azure Information Protection), it was stated the Aspose.Words does not support Microsoft Azure Information Protection. The last update on that topic was from April 2019. Is it still true that Aspose.Words or Cells does not support the handling of documents with that protection in so far as PDF conversion? Thank you in advance for your answer.

References: WORDSNET-17433, CELLSNET-46335

@mbrusich

We regret to share with you that there is no news available on WORDSNET-17433 and CELLSNET-46335 at the moment. We will inform you via this forum thread once there is an update available on these features.

@mbrusich,

Regarding the ticket (logged earlier as “CELLSNET-46335”), we are afraid we could not support this feature. The files are encrypted, but there is no EncryptedInfo part which contains encryption algorithm and password settings in the file. It seems MS Excel will get EncryptedInfo from Microsoft Azure Information protection services after authority.

I have a WORD document which is protected with the office 365 credentials. For further details please see the link below.
Learn about sensitivity labels - Microsoft Purview (compliance) | Microsoft Docs

When I convert from WORD to PDF following error appears.

    Unknown file format. -- Aspose.Words.UnsupportedFileFormatException: Unknown file format.
at Aspose.Words.Document.(Stream , LoadOptions )
at Aspose.Words.Document.(Stream , LoadOptions )
at Aspose.Words.Document..ctor(String fileName, LoadOptions loadOptions)
at SigningHub.Components.PDF.PDFConverter.Convert_DOC_to_PDF(

My question: Is this the same issue and is not resolved yet or is it resolved because last update is from Oct 2020.
Thanks.

@Wahaj_Khan Unfortunately, Aspose.Words still does not support documents marked with sensitivity labels. This feature request is logged as WORDSNET-17433. We will keep you informed and let you know once on it is supported.

Thanks. Can we somehow identify the document with sensitivity labels using aspose.words? Is there any way out to inform client that this document is protected.
Currently I am getting Aspose.Words.UnsupportedFileFormatException.

Thanks in advance.

@Wahaj_Khan You can try using FileFormatUtil.DetectFileFormat method. To detect format of the input document. The method will not detect that the document is protected with sensitivity labels, but it will return LoadFormat.Unknown if the file format is not recognized and Aspose.Words will not be able to load the document.

1 Like

The issues you have found earlier (filed as WORDSNET-17433) have been fixed in this Aspose.Words for .NET 24.9 update also available on NuGet.