OFBIZ-6504 - Create password protected PDF in OFBiz

1. Changed to use FOP 2.0 native encryption, jars are updated.

2. Now the Embeded options are request parameters supported in ScreenFopViewHandler.java, the options are:
http://xmlgraphics.apache.org/fop/2.0/pdfencryption.html#embedded
the default values of the options can be configured in framework/webapp/config/fop.properties.

3. The demo page is https://localhost:8443/example/control/ExampleReportPdfOptions?exampleId=EX01

4. Barcode is tested.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1691852 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shi Jinghai
2015-07-19 20:41:32 +00:00
parent 8f446273d6
commit c93b665a7e
5 changed files with 106 additions and 237 deletions
+48
View File
@@ -1124,4 +1124,52 @@
<value xml:lang="en">Password did not match confirm password.</value>
<value xml:lang="zh">密码与验证密码不一致。</value>
</property>
<property key="PDFOwnerPassword">
<value xml:lang="en">Owner Password</value>
<value xml:lang="zh">拥有者密码</value>
</property>
<property key="PDFUserPassword">
<value xml:lang="en">User Password</value>
<value xml:lang="zh">使用者密码</value>
</property>
<property key="PDFAllowPrint">
<value xml:lang="en">Allow Print</value>
<value xml:lang="zh">允许打印</value>
</property>
<property key="PDFAllowCopyContent">
<value xml:lang="en">Allow Copy Content</value>
<value xml:lang="zh">允许复制内容</value>
</property>
<property key="PDFAllowEditContent">
<value xml:lang="en">Allow Edit Content</value>
<value xml:lang="zh">允许编辑内容</value>
</property>
<property key="PDFAllowEditAnnotations">
<value xml:lang="en">Allow Edit Annotations</value>
<value xml:lang="zh">允许编辑注释</value>
</property>
<property key="PDFAllowFillInForms">
<value xml:lang="en">Allow Fill-in Forms</value>
<value xml:lang="zh">允许填写表格</value>
</property>
<property key="PDFAllowAccessContent">
<value xml:lang="en">Allow Access Content</value>
<value xml:lang="zh">允许访问内容</value>
</property>
<property key="PDFAllowAssembleDocument">
<value xml:lang="en">Allow Assemble Document</value>
<value xml:lang="zh">允许组装文档</value>
</property>
<property key="PDFAllowPrintHq">
<value xml:lang="en">Allow Print HQ</value>
<value xml:lang="zh">允许高质量打印</value>
</property>
<property key="PDFEncryptMetadata">
<value xml:lang="en">Encrypt Metadata</value>
<value xml:lang="zh">加密元数据</value>
</property>
<property key="PDFEncryptionLength">
<value xml:lang="en">Encryption Length</value>
<value xml:lang="zh">密钥长度</value>
</property>
</resource>