The permissions are the same whether you open the PDF with user or owner 
password. The difference is that the owner password allows you to change the 
permissions, for example, remove them.

Paulo

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: "bruno" <[EMAIL PROTECTED]>
Cc: "Post all your questions about iText here" 
<[email protected]>
Sent: Tuesday, June 06, 2006 4:35 PM
Subject: Re: [iText-questions] Permissions on user/owner







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]
             m>                                                       Para
                                       Post all your questions about iText
             06/06/2006 04:29          here
             a.m.                      <[EMAIL PROTECTED]
                                       net>, [EMAIL PROTECTED]
                                                                        cc

                                                                    Asunto
                                       Re: [iText-questions] Permissions
                                       on user/owner










[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

Reply via email to