If you can open the pdf using iText without an owner password, then try
using either the PdfWriter, PdfStamper or PdfCopy examples from the tutorial
to copy the pdf and set permissions using this method...
PdfWriter.setEncryption(byte[] userPassword, byte[] ownerPassword, int
permissions, int encryptionType)
then read the copy, using the owner password, and make another copy without
setting permissions. Maybe that will straighten out the kink.


----- Original Message ----- 
From: "Diana Almeida" <[EMAIL PROTECTED]>
To: "Post all your questions about iText here"
<[email protected]>
Sent: Thursday, December 04, 2008 10:41 AM
Subject: Re: [iText-questions] HELP PLEASE! PdfReader.removeUsageRights()


> Thanks for all the help but still i can't solve my problem. I'll try to
> explain better...
>
> Well i have a pdf file.I have Adobe Acrobat Reader 9. On the reader, i
> need to open the document and add a comment to it. For this, if i had a
> "normal" document, i would only need to go to the menubar, under
> "Document" i have the "Comment" option. But for this file, that option
> doesn't exist...
>
> I attached the pdf files of what i have (i_have.pdf) and of want i want
> (i_want.pdf).
>
> The "i_have.pdf" shows my original document, with "not allowed" on
> almost every options under File->Properties->Security-> "restritions of
> the document". I need to change this to "allowed", at least for comments.
> The other, "i_want.pdf", shows the same document but with comments
> "Allowed". I managed this using acrobat pro. The problem is that i need
> to do this using iText and not Acrobat.
>
>
> I'm sorry for all the questions
> Thanks for all the answers,
>
> Diana Almeida <cid:[email protected]>
>


----------------------------------------------------------------------------
----


> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
> Build the coolest Linux based applications with Moblin SDK & win great
prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/


----------------------------------------------------------------------------
----


> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.1t3xt.com/docs/book.php



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to