From: Jeremias Maerki
Date: Mon, 23 Jun 2003 08:36:13 +0000 (+0000)
Subject: Added instructions for embedding.
X-Git-Tag: Root_Temp_KnuthStylePageBreaking~1400
X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7380943d879bcbe43c9e6a67349fb3679291f220;p=xmlgraphics-fop.git
Added instructions for embedding.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196521 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/src/documentation/content/xdocs/pdfencryption.xml b/src/documentation/content/xdocs/pdfencryption.xml
index 8db0446a8..e51dda0b9 100755
--- a/src/documentation/content/xdocs/pdfencryption.xml
+++ b/src/documentation/content/xdocs/pdfencryption.xml
@@ -7,6 +7,7 @@
PDF encryption.
+
@@ -30,7 +31,7 @@
- Usage
+ Usage (command line)
Encryption is enabled by supplying any of the encryption related
options.
@@ -59,6 +60,73 @@
text, editing in Adobe Acrobat and making annotations, respectively.
+
+ Usage (embedded)
+
+ When FOP is embedded in another Java application you need to set an
+ options map on the renderer. These are the supported options:
+
+
+
+
Option
+
Description
+
Values
+
Default
+
+
+
ownerPassword
+
The owner password
+
String
+
+
+
+
userPassword
+
The user password
+
String
+
+
+
+
allowPrint
+
Allows/disallows printing of the PDF
+
"TRUE" or "FALSE"
+
"TRUE"
+
+
+
allowCopyContent
+
Allows/disallows copy/paste of content
+
"TRUE" or "FALSE"
+
"TRUE"
+
+
+
allowEditContent
+
Allows/disallows editing of content
+
"TRUE" or "FALSE"
+
"TRUE"
+
+
+
allowEditAnnotations
+
Allows/disallows editing of annotations
+
"TRUE" or "FALSE"
+
"TRUE"
+
+
+
+ Encryption is enabled as soon as one of these options is set.
+
+
+ An example to enable PDF encryption in Java code:
+