允许使用itextsharp在密码安全性pdf中提取页面 [英] Allow page extraction in a password security pdf with itextsharp

查看:242
本文介绍了允许使用itextsharp在密码安全性pdf中提取页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道是否可以创建一个启用了密码安全性的pdf,这也允许提取页面。

I don't know if it is possible to create a pdf with password security enabled, that also allows extraction of pages.

我找不到任何属性在itextsharp中允许启用页面提取。

I havn't found any property in itextsharp which will allow enable page extraction.

任何人有任何想法吗?

这是我要启用的属性。

非常感谢。

推荐答案

我看了一眼ISO-32000-2草案中的权限位,我将它们与iText中提供的参数(用ALL_CAPS编写)进行了比较:

I've taken a look at the permission bits in the draft of ISO-32000-2 and I've compared them with the parameters (written in ALL_CAPS) available in iText:

bit 1:  Not assigned
bit 2:  Not assigned
bit 3:  Degraded printing: ALLOW_DEGRADED_PRINTING
bit 4:  Modify contents: ALLOW_MODIFY_CONTENTS
bit 5:  Extract text / graphics: ALLOW_COPY
bit 6:  Add / Modify text annotations: ALLOW_MODIFY_ANNOTATIONS
bit 7:  Not assigned
bit 8:  Not assigned
bit 9:  Fill in fields: ALLOW_FILL_IN
bit 10: **Deprecated** ALLOW_SCREEN_READERS
bit 11: Assembly: ALLOW_ASSEMBLY
bit 12: Printing: ALLOW_PRINTING

当我将规格与屏幕截图进行比较时,我认为权限如下:

When I compare the spec with your screen shot, I assume that the permissions are as follows:


  • 打印:ALLOW_DEGRADED_PRINTING或ALLOW_PRINTING

  • 更改凭证:ALLOW_MODIFY_CONTENTS

  • 评论:ALLOW_MODIFY_ANNOTATIONS

  • 表格字段填写或签名:ALLOW_FILL_IN

  • 文件汇编:ALLOW_ASSEMBLY

  • 内容复制:ALLOW_COPY

  • 启用内容辅助功能:ALLOW_SCREENREADERS

  • Printing: ALLOW_DEGRADED_PRINTING or ALLOW_PRINTING
  • Changing the document: ALLOW_MODIFY_CONTENTS
  • Commenting: ALLOW_MODIFY_ANNOTATIONS
  • Form Field Fill-in or Signing: ALLOW_FILL_IN
  • Document Assembly: ALLOW_ASSEMBLY
  • Content copying: ALLOW_COPY
  • Content Accessibility Enabled: ALLOW_SCREENREADERS

我找不到任何权限位是指页面提取。我已经尝试设置ISO-32000-2中记录的所有标志,但它们没有导致将页面提取设置为允许。

I can't find any permission bit that refers to page extraction. I have tried setting all the flags that are documented in ISO-32000-2, but they didn't result in setting the Page Extraction to Allowed.

我试过两个事情:

首先我尝试设置未分配的位:位1,2,7,8,13,14。这没有改变任何东西。然后我在Acrobat中打开了一个测试文档,我尝试找到一个允许页面提取的设置:

First I tried setting the bits that aren't assigned: bit 1, 2, 7, 8, 13, 14. This didn't change anything. Then I opened a test document in Acrobat and I tried finding a setting that would allow page extraction:

我找不到任何。

由于ISO-32000中没有描述权限,并且因为似乎没有办法在Acrobat中设置此权限,我倾向于认为没有办法设置此权限。查看允许的唯一方法是使用所有者密码打开文档。

As the permission isn't described in ISO-32000 and as there doesn't seem to be a way to set this permission in Acrobat, I'm inclined to believe that there is no way to set this permission. The only way to see "Allowed", is to open the document with the owner password.

请在找到设置此权限的方法后立即更新您的问题杂技演员。我正在使用Acrobat XI Pro。

Please update your question as soon as you find a way to set this permission with Acrobat. I'm using Acrobat XI Pro.

另一个注意事项:按照您的方式设置权限(仅使用所有者密码而不使用用户密码)只是一种心理 NOT 一种实施保护的全面证明技术方式。请参阅如何阅读使用未知随机所有者密码创建的PDF?,了解如何从仅使用所有者密码保护的PDF中删除权限。

On another note: setting the permissions the way you do (using only an owner password and without a user password) is only a psychological, NOT a full-proof technical way to enforce protection. See How to read PDFs created with an unknown random owner password? to find out how to remove permissions from a PDF that is only protected using an owner password.

这篇关于允许使用itextsharp在密码安全性pdf中提取页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆