Author Posts

October 13, 2015 at 1:22 pm

Hi

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.

Thanks
Paul

October 14, 2015 at 2:00 am

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.

October 14, 2015 at 2:05 am

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
http://sourceforge.net/p/itextsharp/code/HEAD/tree/book/iTextExamplesWeb/iTextExamplesWeb/iTextInAction2Ed/

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