Hello,
** All I'm trying to do is open a PDF template file,
InputStream input = new BufferedInputStream(new
FileInputStream("/template-buyer.pdf"));
PdfReader reader = null;
reader = new PdfReader(input);
** create an output stream
ByteArrayOutputStream bout = new ByteArrayOutputStream();
PdfStamper stamper = new PdfStamper(reader,bout);
AcroFields aform = stamper.getAcroFields();
** Then do some changes to the fields of the template PDF file,
..
..
** And out put it to the binary stream for output,
stamper.close();
bytes = bout.toByteArray();
bout.close();
** above bit work fine, now I want to do is, insert a another page to this
above pdf file that I open and send the combined PDF into the bitestream,
how can I do that? Can you able to provide me an example to add this second
page? Or where in above page that I have to added into.
Regards,
Dilan
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of bruno
Sent: Thursday, 30 March 2006 6:16 PM
To: Dilan
Cc: [email protected]
Subject: Re: [iText-questions] FW: Adding a new pdf page
Dilan wrote:
>I have try the PdfCopy, I'm not sure where did I went wrong,
>But its gives an corrupted pdf,
>
If only I could see what you are trying to achieve I could send
you an example, but I don't understand your code sample.
It's as if you assume that two PDF files can be glued together
like two Strings. Also you invoke the close() method at the
most impossible places. Why?
br,
Bruno
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions