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