如何打开受密码保护的 PPT 和 PDF? PDF

发布于 2024-10-06 02:41:37 字数 136 浏览 0 评论 0原文

我想检查 PPT 文件是否受密码保护。我正在使用 Office 互操作工具。我发现Presentations.Open函数不接受密码作为参数。

有没有其他方法可以检查文件是否受密码保护。

我也需要对 pdf 文件做同样的事情。

I want to check if a PPT file is passsword protected. I am using Office interops. I found that Presentations.Open function doesn't accept a password as parameter.

Is there any other way to check a file is password protected.

I need to do the same for pdf files also.

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

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

发布评论

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

评论(1

萌化 2024-10-13 02:41:37

对于 PPT 文件,我认为这是不可能的。或者至少使用对象模型,我想您也许能够使用 Windows API 函数来查找密码对话框并向其发送密码,但这不是很可靠。

For PPT files I don't think this is possible. Or at least using the object model, I suppose that you might be able to use Windows API functions to find the password dialog and send in the password to it but that wouldn't be very robust.

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