Day, Andrew wrote:
I want to read what permissions are set on a encrypted PDF, for
example I want to know if the PDF can be printed or not.
So I open the PDF using "PdfReader" and test to see if the document is
encrypted if it is then I want to check the permission to see if
printing is allowed. When I get the permissions value it get back a
-60, I know the AllowPrinting value is 2052 so I do I text for this?
I would like to figure out all the values that make up the permissions
value
You weren't subscribed when you posted your question.
It was held by the list server at SourceForge and it seems
that this service was constipated: today I received over 200
mails dating from december (I removed all the SPAM mails
so that they don't reach the list).
Anyway, the answer t your question is:
use PdfEncryptor.getPermissionsVerbose to know what the permissions
value means.
br,
Bruno
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions