iText 加密 pdf 权限

翻了下官方api 发现权限中没有注释,而 itext in Action 第二版中有记录,在此记录下,以备查询
itext in Action P338

PdfWriter中的权限 说明
ALLOW_PRINTING “The user is permitted to print the document.文档允许打印”
ALLOW_DEGRADED_PRINTING “The user is permitted to print the document, but not with the quality offered by ALLOW_PRINTING (for 128-bit encryption only).允许用户打印文档,但不提供allow_printing质量(128位加密)。”
ALLOW_MODIFY_CONTENTS “The user is permitted to modify the contents—for example, tochange the content of a page, or insert or remove a page.允许用户修改内容,例如 更改页面内容,或插入或删除页。”
ALLOW_ASSEMBLY “The user is permitted to insert, remove, and rotate pages andadd bookmarks. The content of a page can’t be changed unlessthe permission ALLOW_MODIFY_CONTENTS is granted too (for128-bit encryption only).允许用户插入、删除和旋转页面和添加书签。页面的内容不能更改,除非也授予allow_modify_contents权限”
ALLOW_COPY “The user is permitted to copy or otherwise extract text and graphics from the document, including using assistive technologiessuch as screen readers or other accessibility devices.允许用户复制或以其他方式从文档中提取文本和图形,包括使用辅助技术。例如屏幕阅读器或其他可访问设备。”
ALLOW_SCREENREADERS “The user is permitted to extract text and graphics for use by accessibility devices (for 128-bit encryption only).允许用户提取文本和图形以供易访问性设备使用”
ALLOW_MODIFY_ANNOTATIONS “The user is permitted to add or modify text annotations and interactive form fields.允许用户添加或修改文本注释和交互式表单字段。”
ALLOW_FILL_IN “The user is permitted to fill form fields (for 128-bit encryptiononly)允许用户填写表单字段”

你可能感兴趣的:(java,iTest,pdf)