PowerShell using iTextSharp to combine PDF files

Welcome Forums General PowerShell Q&A PowerShell using iTextSharp to combine PDF files

This topic contains 2 replies, has 3 voices, and was last updated by

 
Participant
3 years, 5 months ago.

  • Author
    Posts
  • #30749

    Participant
    Points: 0
    Rank: Member

    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

  • #30768

    Participant
    Points: 41
    Rank: Member

    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

    Participant
    Points: 0
    Rank: Member

    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.

The topic ‘PowerShell using iTextSharp to combine PDF files’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort