But, if you know the password, how can we modify that pdf. I have a pdf
document which is protected, but I know the password. Could you please
explain how to do that?

On 2/10/09, Leonard Rosenthol <[email protected]> wrote:
>
>  You need to contact the original author of the PDF and ask them for the
> password.
>
>
>
> They put the password there to prevent unauthorized use of the document –
> such as what you are trying to do.  I am sure that if you tell them what you
> are doing, and why, they will be glad to work with you…
>
>
>
> Leonard
>
>
>
> *From:* Subhrajyoti Moitra [mailto:[email protected]]
> *Sent:* Tuesday, February 10, 2009 11:47 AM
> *To:* Post all your questions about iText here
> *Subject:* Re: [iText-questions] Unlocking PDF files.
>
>
>
> Hi,
> Let me tell you why i am doing this.
>
> I want to append/prepend pages to the document. The final pdf need not be
> the same doc (the source doc which is protected).
> So what i want to do is:
>
> Construct a new pdf file that adds(copies) a prepend.pdf, then copies the
> source pdf and then another append pdf.
> The final doc is combination of all the 3.
>
> The issue is that i cant seem to accomplish this using PdfCopyFields. My
> code is something like this
>
> PdfCopyFields pcf=new PdfCopyFields(tempFileOutputStream);
>             pcf.addDocument(tempPrependReader);
>             pcf.addDocument(sourcePdfFileReader);//copy source pdf as is.
>             pcf.close();
>
> While adding the sourcePdfFileReader i get the below exception. I wanted to
> avoid this, is there a way to do this?
>
> Thanks a lot for your time.
>
> Subhro.
>
>
>  On Tue, Feb 10, 2009 at 9:55 PM, 1T3XT info <[email protected]> wrote:
>
> Subhrajyoti Moitra wrote:
> > Exception in thread "main" java.lang.IllegalArgumentException: PdfReader
> > not opened with owner password
> >
> > I read in this link, this is possible:
> http://www.ensode.net/pdf_unlock.html
>
> That link contains information about an action that is illegal.
> You are not allowed to use iText to crack a PDF file.
> --
> This answer is provided by 1T3XT BVBA
> http://www.1t3xt.com/ - http://www.1t3xt.info
>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code
> to
> build responsive, highly engaging applications that combine the power of
> local
> resources and data with the reach of the web. Download the Adobe AIR SDK
> and
> Ajax docs to start building applications today-
> http://p.sf.net/sfu/adobe-com
> _______________________________________________
> 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
>
>
>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code
> to
> build responsive, highly engaging applications that combine the power of
> local
> resources and data with the reach of the web. Download the Adobe AIR SDK
> and
> Ajax docs to start building applications today-
> http://p.sf.net/sfu/adobe-com
> _______________________________________________
> 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
>



-- 
Thanks and Regards,

Renjan Bhasi,
Sr. Software Engineer,
Tavant Technologies India Pvt. Ltd.
VMS Admin Team - EAG
Office: 91-80-41190300 X220
www.tavant.com
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
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