Guide for VB.NET
Core Document Formats
Additional Features

VB.NET PDF - Merge PDF Document Using VB

VB.NET Guide and Sample Codes to Merge PDF Documents in .NET Project

Home > .NET Imaging SDK > VB.NET > Merge PDF

"This online guide content is Out Dated!
    Please get the latest XDoc.PDF C# Developer Guide here.

RasterEdge .NET Image SDK has included a variety of image and document processing library components, one of which is the PDF document editing control DLL. This library DLL can efficiently enable developers to merge two or more PDF document into one and then save as another PDF document using Visual Basic .NET programming codes.
Different from PDF document appending, which is processed by directly tagging the second PDF file to the target one, this PDF file merge function will put the two target PDF together and save as new PDF, without changing the previous two PDF documents at all.
This guiding page will help you merge two or more PDF documents into a single one in a Visual Basic .NET imaging application. Listed below are the main sections that are going to be talked about later on this page:
  • VB.NET PDF document merging library SDK
  • How to merge two PDF documents together with Visual Basic .NET method
  • How to merge two PDF files together with Visual Basic .NET sample codes
  • Some other Visual Basic .NET image processing user manuals
VB.NET PDF Document Merging Library
RasterEdge PDF merging library is a mature library SDK which adds powerful Portable Document Format (PDF) editing solutions and capacities to your system for VB.NET developers. This library control can be easily installed into .NET development environment such as Microsoft Visual Studio, with no need for third party tool such as Adobe Acrobat PDF editor.
When you have downloaded the RasterEdge Image SDK for .NET, you can unzip the package to find the RasterEdge.Imaging.PDF.dll in the bin folder under the root directory. We have also provided you with detailed PDF processing demo project along with sample codes, which you can find in the Demos folder under RasterEdge.Imaging.Demo directory with the file name RasterEdge.Imaging.Demo.PDF.
VB.NET Method to Merge PDF Files
RasterEdge VB.NET PDF document file merger can easily enable .NET developers to merge two or more PDF documents into a new PDF document with all the previous PDFs combined. In order to apply the Visual Basic .NET method demonstrated below, you need to meet the following requirements.
To obtain the RasterEdge PDF editing library, you should download a free trial package first, and unzip it to get the library. Then you need to activate a license to validate the library control.
Furthermore, you are required to create an image processing program in your Microsoft Visual Studio (2005 or later supported). This library control can be integrated into a variety of .NET applications such as Visual Basic .NET Class Library and Windows Forms application, etc.
Public Sub PdfProcessorMerge(PDFInputFile1 As String, PDFInputFile2 As String, PDFOutputFile As String)
End Sub
VB.NET Sample Codes to Merge PDF Files
RasterEdge has developed this Visual Basic .NET PDF document processing & editing library control for .NET developers so they are enabled to merge two, three or more PDF documents into a single PDF doc, and save it to local directory as a brand new PDF document. At the same time, the resource PDF documents used for merging are safely preserved as before with nothing changed.
This VB.NET PDF manipulating library component is very easy to use in that it does not require a third party tool such as Adobe Acrobat. You can simply add the library to your VB imaging program, and then copy the code below for merging PDF documents.
Imports System.IO
Imports System.Drawing.Printing
Imports RasterEdge.Imaging
Imports RasterEdge.Imaging.Processing
Imports RasterEdge.Imaging.Pdf

Dim PDF As New RasterEdgeImaging()

Public Sub PdfProcessorMerge()
If True Then
PDFInputFile1 = ("C:/1.pdf")
PDFInputFile2 = ("C:/2.pdf")
PDFOutputFile = OutputFormat.pdf
End If
End Sub
PDF.PdfProcessorMerge(@"C:/1.pdf", @"C:/2.pdf", @"C:/merged.pdf")
More Imaging Tutorials

Recommend this to Google+