Hi all,
I found this class that can import several PDF file & create 1 big PDF file. I don't know how to use this class. Can someone show me?
How can I get all PDF files & put into an array & pass to this class?
Thanks
http://www.dotnetspider.com/resources/36210-Merge-PDF-File-using-itextsharp-library.aspx
using System;
using System.IO;
using iTextSharp.text;
using iTextSharp.text.pdf;
public class PdfMerge
{
public static void MergeFiles(string destinationFile, string[] sourceFiles)
{
try
{
int f = 0;
// we create a reader for a certain document
PdfReader reader = new PdfReader(sourceFiles[f]);
// we retrieve the total number of pages
int n = reader.NumberOfPages;
//Console.Wri ...
Go to the complete details ...