解析受限制的词文件

发布于 2025-01-25 08:10:42 字数 431 浏览 4 评论 0原文

我正在使用Windows独立应用程序。 [我不能按照我们的公司政策披露名称] 我安装了Azure信息保护客户端。 然后,我使用以下步骤保护了Word文件:

  1. 转到File Ribbon>信息选项卡
  2. “保护文档”按钮>限制访问>限制访问
  3. 检查“限制对本文档的许可”>好的,
  4. 保存文档> 现在退出应用程序

,我的应用程序试图使用以下步骤解析此限制文件。

  1. 解开Word文件
  2. 读取OOXML内容并提取所需的信息
  3. 创建输出文件,并使用此提取的信息 但是该应用程序无法解压缩Word文件,因为它是限制的。

所以我的问题是我们有任何Microsoft API可以解压缩限制文件吗? 还有其他方法可以从此类限制文件中读取OOXML数据吗?

I am working on a Windows standalone application. [ I can not disclose the name as per our company policy]
I installed Azure Information Protection Client.
Then I protected the Word file with the below steps:

  1. Go to File ribbon > Info tab
  2. "Protect Document" button > Restrict Access > Restricted Access
  3. Check "Restrict permission to this document" > OK
  4. Save the document > Exit the application

Now my Application tries to parse this restricted file with the below steps.

  1. Unzip the Word file
  2. Read the OOXML content and extract needed information
  3. Create an output file with this extracted information
    but the application cannot unzip the word file because it is restricted.

So my question is do we have any Microsoft API to unzip the restricted file?
is there any other way to read OOXML data from such a restricted file?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

养猫人 2025-02-01 08:10:42

通过包括MIP SDK( https://learlen.microsoft.com/it-rosoft-com/it-com/it-com/it-comlef-com/it-int-com/it-comlef-com/it-com.com/it-comlef-com/it-comlef-com/it-com-it-com/it-comlef-com/it-comlef-com/it-comlef-com/it-in-it-com/it-comlef-com/it-int-in IT/信息保护/开发/)在您的应用程序中,您可以使用此功能:

public void GetDecryptedTemporaryFileAsync(const std::shared_ptr< void>& context)

要获取受保护文件的临时版本,以便您的应用程序的其余部分正常进行。

MIP SDK应配置为使用允许访问受保护文件的帐户运行,或以“超级用户”运行,以便该过程可以访问任何受保护的文件。

在使用超Yuser功能之前,请仔细评估保护方案。

by including MIP SDK (https://learn.microsoft.com/it-it/information-protection/develop/) in your application, you can use this function:

public void GetDecryptedTemporaryFileAsync(const std::shared_ptr< void>& context)

to get a decrypted temporary version of the protected file, so that the rest of your application goes on as normal.

MIP SDK should be configured to run with an account that is allowed to access the protected file, or run as "superuser", so that the process can access any protected file.

Evaluate carefully the protection scenario before using the superyuser feature.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文