PowerShell using iTextSharp to combine PDF files


I have been looking at PowerShell and using iTextSharp to combine PDF files into one. I have managed to load the dll and can read the PDF and bring back things like page numbers.

I’m stuck on how to combine the 2 (or more) PDFs into 1 document.

Any advice would be great.


This isn’t really a PowerShell question, I think you’ll have better luck in an iTextSharp forum. It looks like stackoverflow has an active iTextSharp community.

You will need to read both pdf files into an object and then create a new pdf with the content from your object.
Here are some C# examples

I agree with Matt, this is something better answered by the iTextSharp community.