You are prompted for the owner password because you can't extract pages
without it. You should first play a bit in Acrobat and then tell us what
are the options that work for you. We will then tell you what to do in
iText. It looks like you want iText to do more than what Acrobat will
allow.
Paulo
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Katherine TUNG
> Sent: Monday, May 28, 2007 4:50 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] change document restriction
> onDocumentAssembly
>
> Hi Bruno,
>
> I inherited the code, so I'm not really sure the original intent of
> setting one but not the other. I did try to put "null" in
> both places,
> and I still get prompted for password. Is there another way I can
> change the restrictions without setting the password?
>
> Thanks,
> Katherine
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Bruno Lowagie
> Sent: Saturday, May 26, 2007 2:12 AM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] change document restriction on
> DocumentAssembly
>
> Katherine TUNG wrote:
> > I
> > created two PDFs with this setting (Allow Printing and
> Assembly) but
> > as soon as I open one of the PDFs, and click "Insert", a dialog
> > prompts me for a password.
>
> Looking at your code, I have the impression that you are setting the
> userPassword, not the ownerPassword. Any reason for this?
> br,
> Bruno
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/