Free Trial
Web API version
Licensing
Request A Quote
HAVE QUESTIONS OR NEED HELP? SUBMIT THE SUPPORT REQUEST FORM or write email to SUPPORT@BYTESCOUT.COM
Merge All Documents Within Folder | C#
Program.cs:
C#
using System.Diagnostics; using Bytescout.PDFExtractor; namespace MergeAllDocumentsWithinFolder { class Program { static void Main(string[] args) { var SourceFolder = "PDFDocs"; var DestinationFile = "result.pdf"; var IncludeSubFolder = true; using (DocumentMerger merger = new DocumentMerger("demo", "demo")) { merger.MergeFolder(SourceFolder, DestinationFile, IncludeSubFolder); } // Open result document in default associated application (for demo purpose) ProcessStartInfo processStartInfo = new ProcessStartInfo(DestinationFile); processStartInfo.UseShellExecute = true; Process.Start(processStartInfo); } } }