Hello guys, I am new to Java and iText, so I would appreciate if you could
throw me some pointers.

I have to read a database file and fill in a PDF template form which has
fields defined and upload this completed PDF into a table.

So I read the template PDF form using:
PdfReader reader = new PdfReader("c:\one.pdf");

And define a ByteArrayOutputStream, so I can upload to the database from
this ByteArrayOutputStream
ByteArrayOutputStream out1 = new ByteArrayOutputStream();
PdfStamper stamp1 = new PdfStamper(reader, out1);

And using PDFStamper and Acrofield classes, I am able to populate the fields
in the form and upload the out1 object using ByteArrayInputStream class.

Now my problem: Sometimes I have read another template "two.pdf" pdf file,
fill in the fields and then concatenate both one.pdf and two.pdf and upload
it to the database as one "ByteArrayInputStream" or one pdf file.

Initially I thought I would just concatenate both ByteArrayOutputStream
streams and upload it. But on second thoughts, I am not sure if this method
will work? I would appreciate any suggestions that you may have to offer.
Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/Concatenating-PDF%27s-as-ByteArrayInputStream%27s-tp18766122p18766122.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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