Friday, December 30, 2011

Concatenating the pdf files

With the use of iText, We can concatenate pdf files.

PdfReader and PdfCopyFields classes are used for this purpose.,

In java Agent we can upload it into lotus notes also...


PdfReader reader1 = new PdfReader("1PDF.pdf");
PdfReader reader2 = new PdfReader("2PDF.pdf");
PdfCopyFields copy =new PdfCopyFields(new FileOutputStream("concatenatedPDF.pdf"));
copy.addDocument(reader1);
copy.addDocument(reader2);

No comments:

Post a Comment