In the previous post I showed a class to merge PDF files using iText#, but it seems that there’s a better approach using iTextDotNet:
csharp:
using com.lowagie.tools;
class Program
{
static void Main(string[] args)
{
string[] lista = new string[] { "Meijer.pdf", "P330.pdf", "result.pdf" };
concat_pdf.main(lista);
}
}
class Program
{
static void Main(string[] args)
{
string[] lista = new string[] { "Meijer.pdf", "P330.pdf", "result.pdf" };
concat_pdf.main(lista);
}
}
As you can see this is a cleaner and simpler way to merge pdf files. You can download the iTextDotNet .NET Library from this blog or the official Website.
Arthur 4:41 am on April 4, 2008 Permalink
Hello,
Thank for this post, but :
where do you find com.lowagie.tools ?
Is it a part of the textsharp lib ?
I didn’t find.
Thanks.
Arth’
alex 8:14 am on April 4, 2008 Permalink
It is part of iTextDotNet
RAj 2:00 pm on November 3, 2009 Permalink
Hi alex,
this is really nice…
do you have any idea how to merge the TOC (Table of Contentes) into first page while merging pdf files ?
Regards,
Raj.
Paul 11:48 am on January 7, 2010 Permalink
In the above example where is the merged pdf file?
alex 3:39 pm on January 7, 2010 Permalink
It is stored in the last element of the array (it only merges two pdf files).