These sample source codes on this page below are displaying how to merge two pdf documents with pdf sdk in VB.NET. ByteScout Premium Suite is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording and you can use it to merge two pdf documents with pdf sdk with VB.NET.
This prolific sample source code in VB.NET for ByteScout Premium Suite contains various functions and other necessary options you should do calling the API to merge two pdf documents with pdf sdk. IF you want to implement the functionality, just copy and paste this code for VB.NET below into your code editor with your app, compile and run your application. This basic programming language sample code for VB.NET will do the whole work for you to merge two pdf documents with pdf sdk.
If you want to try other source code samples then the free trial version of ByteScout Premium Suite is available for download from our website. Just try other source code samples for VB.NET.
Imports Bytescout.PDF Module Module1 Sub Main() ' Open first document Dim document1 = New Document("document1.pdf") document1.RegistrationName = "demo" document1.RegistrationKey = "demo" ' Open second document Dim document2 = New Document("document2.pdf") document2.RegistrationName = "demo" document2.RegistrationKey = "demo" ' Add pages from document2 to document1 For i As Integer = 0 To document2.Pages.Count - 1 document1.Pages.Add(document2.Pages(i)) Next ' Save merged document document1.Save("MergedDocument.pdf") ' Open merged document in default PDF viewer application Process.Start("MergedDocument.pdf") End Sub End Module