PowerShell using iTextSharp to combine PDF files

This topic contains 2 replies, has 3 voices, and was last updated by  Jonathan Warnken 2 years, 5 months ago.

  • Author
  • #30749

    Paul Smith


    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.


  • #30768

    Matt Bloomfield

    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.

  • #30769

    Jonathan Warnken

    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.

You must be logged in to reply to this topic.