tool.pdf
public class Encrypt extends Object
Version: $Revision: 1.19 $ $Date: 2004/02/10 19:58:46 $
Field Summary | |
---|---|
static String | USAGE |
static String | VERSION |
Constructor Summary | |
---|---|
Encrypt() |
Method Summary | |
---|---|
void | defaults() |
void | encrypt(File in) Compute output filename and invoke encrypt. |
void | encrypt(File filein, File fileout)
Reads file in and writes encrypted version to file out.
|
void | encrypt(PDFReader pdfr, PDFWriter pdfw) |
static void | main(String[] argv) |
void | setKeyLength(int multipleof8)
If 40 bits, uses settings compatible with older PDF viewers (V=1, R=2), else newer settings introduced in PDF 1.4. |
void | setOwnerPassword(String password) |
void | setPassword(String password) Sets owner password of source document. |
void | setPermissions(int perms) Sets permissions from bit mask as defined in PDF Reference. |
void | setPermissions(String actions)
Permits passed actions, where act is one or more of pPcCmtfa .
|
void | setRestrictions(String actions)
Restricts passed actions, where actions is one or more of pPcCmtfa .
|
void | setUserPassword(String password) |
pPcCmtfa
.
Equal in capability to Encrypt.pPcCmtfa
.
Equal in capability to setPermissions.