Link Search Menu Expand Document

Merge PDF Documents - C#

PDF Extractor SDK sample in C# demonstrating ‘Merge PDF Documents’

using System.Diagnostics;
using Bytescout.PDFExtractor;

namespace MergeDocuments
    class Program
        static void Main(string[] args)
            string[] inputFiles = new string[] {"sample1.pdf", "sample2.pdf", "sample3.pdf"};

            using (DocumentMerger merger = new DocumentMerger("demo", "demo"))
                merger.Merge(inputFiles, "result.pdf");

            // Open result document in default associated application (for demo purpose)
            ProcessStartInfo processStartInfo = new ProcessStartInfo("result.pdf");
            processStartInfo.UseShellExecute = true;

Download Source Code (.zip)

Return to the previous page Explore PDF Extractor SDK

Copyright © 2016 - 2023 ByteScout