Link Search Menu Expand Document

Merge All Documents Within Folder - VB.NET

PDF Extractor SDK sample in VB.NET demonstrating ‘Merge All Documents Within Folder’

Program.vb
Imports Bytescout.PDFExtractor
Imports System.Diagnostics

Class Program

	Friend Shared Sub Main(args As String())

        Dim SourceFolder As String = "PDFDocs"
        Dim DestinationDocument As String = "result.pdf"
        Dim IncludeSubFolder As Boolean = True

        Using merger As New DocumentMerger("demo", "demo")

            merger.MergeFolder(SourceFolder, DestinationDocument, IncludeSubFolder)

        End Using

        Dim processStartInfo As New ProcessStartInfo(DestinationDocument)
        processStartInfo.UseShellExecute = True
        Process.Start(processStartInfo)

    End Sub
    
End Class

Download Source Code (.zip)

Return to the previous page Explore PDF Extractor SDK


Copyright © 2016 - 2021 ByteScout