PDF document encryptor

usage: input_file output_file user_password owner_password permissions
128|40

permissions is 8 digit long 0 or 1. Each digit has a particular security
function:

AllowPrinting
AllowModifyContents
AllowCopy
AllowModifyAnnotations
AllowFillIn (128 bit only)
AllowScreenReaders (128 bit only)
AllowAssembly (128 bit only)
AllowDegradedPrinting (128 bit only)

Example permissions to copy and print would be: 10100000

You'll need iText to run it (http://www.lowagie.com/iText).

Command line example:

java -cp .;itext.jar encrypt_pdf input.pdf output.pdf "" master 10100000 128

The input PDF must be well formed or in other words it must have a correct
xref table.

You can can find it in http://www.geocities.com/itextpdf.

Best Regards,
Paulo Soares


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to