Ok, i've read the manual and i understand that the permissions i refer when
i create an encrypt pdf, are the user access permisions.
But now i have a problem when i use the next code
PdfReader reader = new PdfReader("ChapterSection.pdf");
PdfEncryptor.encrypt(reader, new FileOutputStream("encrypted.pdf"),
"User".getBytes(),
"Owner".getBytes(),0,
true);
I suposse that when i open the pdf with "User" i couldn't do anything 'cause i don't
have permissions, and if i open it with "Owner" i have all the allowances.
however it doesn't work. When i modified the permissions, it seems that they
are applied in both cases, user and owner.
Could you tell me where i am wrong?
Thanks in advance.
Ana Luisa
bruno <[EMAIL PROTECTED]>
06/06/2006 04:29 a.m. |
|
[EMAIL PROTECTED] wrote:
> Hi,
>
> I'm new using iText and now i have a doubt about the permission we can
> use when we create a encrypt pdf. This allowances are applied on the
> user or the owner? is there a way to restrict the user privileges
> while the owner conserve all of them?
>
Please read page 96 and 97 of the PDF reference manual.
(It's available for free on the Adobe.com site.)
br,
Bruno
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions

