How can I merge PDF files into a new PDF?

The sample below demonstrates a way to merge multiple PDF files into one PDF. The recommended tool is VeryPDFToobox(Please click to free download it).
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Call_PDFToolBoxCom
    class Program
        static void Main(string[] args)
            string strExePath = System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase;
            PDFToolBoxCom.PDFToolBoxCom p = new PDFToolBoxCom.PDFToolBoxCom();
            string strReturn = p.RunCMD(@"A=" + strExePath + @"\in1.pdf B="+ strExePath + @"\in2.pdf -merge A B -outfile "+ strExePath + @"\out1.pdf");
            Console.WriteLine("Please enter any key to continue...");

Lear more: VeryPDF PDF Toolbox Component for .NET.

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

2 Replies to “How can I merge PDF files into a new PDF?

  1. Hi,

    I am after ActiveX Control (OCX/dll), to convert multi pages PDF file into single individual PDF files, and also PDF to txt file. Which one of your package do I need?



    VA:F [1.9.20_1166]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.20_1166]
    Rating: 0 (from 0 votes)

Leave a Reply

Your email address will not be published. Required fields are marked *

Verify Code   If you cannot see the CheckCode image,please refresh the page again!