From 7380943d879bcbe43c9e6a67349fb3679291f220 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Mon, 23 Jun 2003 08:36:13 +0000 Subject: [PATCH] Added instructions for embedding. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196521 13f79535-47bb-0310-9956-ffa450edef68 --- .../content/xdocs/pdfencryption.xml | 70 ++++++++++++++++++- 1 file changed, 69 insertions(+), 1 deletion(-) 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: +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
OptionDescriptionValuesDefault
ownerPasswordThe owner passwordString +
userPasswordThe user passwordString +
allowPrintAllows/disallows printing of the PDF"TRUE" or "FALSE""TRUE"
allowCopyContentAllows/disallows copy/paste of content"TRUE" or "FALSE""TRUE"
allowEditContentAllows/disallows editing of content"TRUE" or "FALSE""TRUE"
allowEditAnnotationsAllows/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: +

+ +
Environment

-- 2.39.5