PowerShell using iTextSharp to combine PDF files

This topic contains 2 replies, has 3 voices, and was last updated by Profile photo of Jonathan Warnken Jonathan Warnken 1 year ago.

  • Author
  • #30749
    Profile photo of Paul Smith
    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
    Profile photo of Matt Bloomfield
    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
    Profile photo of Jonathan Warnken
    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.