Viscomsoft .NET PDF Viewer SDK

MergePDF 

 

Merge PDF files.

 Visual Basic

Public bool Sub MergePDF(ByVal strPDF1 As String,
                         ByVal strPDF2 As String,
                         ByVal strOutputFile As String)

 
 C#

public bool MergePDF(string strPDF1, string strPDF2, string strOutputFile)

 

Parameter
strPDF1 - the path of source PDF file 1.
strPDF2 - the path of source PDF file 2.
strOutputFile - the path of output merged PDF file.

Namespace: Viscomsoft.PDFViewer

Return  true - successful, otherwise return false -failed.


Example

   

[C# Syntax] 
using Viscomsoft.PDFViewer;

public partial class Form1 : Form
{

  public PDFView _pdfViewer;
  _pdfViewer = new PDFView();
  _pdfViewer.Canvas.Parent = this;
  _pdfViewer.Canvas.Location = new Point(0, 24);

  private void Form1_Load(object sender, EventArgs e)
  {
      _pdfViewer.MergePDF("c:\\yourpdf1.pdf","c:\\yourpdf2.pdf","c:\\output.pdf");
   
  }
 

 
}


 

   

[Visual Basic Syntax] 
Imports Viscomsoft.PDFViewer

Public Class Form1
 

Private Sub resizeCanvas()

  _pdfviewer.Canvas.Size = New Size(Me.ClientSize.Width, Me.ClientSize.Height - 24)

End Sub

Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load

  _pdfviewer.Canvas.Parent = Me

  _pdfviewer.Canvas.Location = New Point(0, 24)

  _pdfviewer.MergePDF "c:\yourpdf1.pdf","c:\yourpdf2.pdf","c:\output.pdf"

 
End Sub


End Class