Platform : Windows 10, Windows 8, Vista, Windows 7, XP
It is a PDF Viewer and Document Viewer SDK , Export to PDF ,Image processing, 1D and 2D Barcode Reader, Writer, DICOM and OCR with C#, C++, VB.NET , VB, Delphi, Vfp, MS Access.
Step 1: To install the Image Viewer CP Pro SDK ActiveX, begin by launching the setup file (http://www.viscomsoft.com/demo/imageviewercpprosetup.exe). Select the desired installation folder for the Image Viewer CP Pro SDK ActiveX and continue with the installation on your development computer.
Step 2: Launch VS 2019, click Create a new project button, then select Windows Forms App(.NET Framework) for C# option , click Next button.
Step 3: In Toolbar, right click the mouse, select Choose Items...
Step 4: select COM Components - select Image Viewer CP Pro ActiveX.
Step 5: drag the Image Viewer CP Pro ActiveX from toolbar to form and create the UI like the following
Step 6: In PDF File1's Select button click event, add the following code
this.openFileDialog1.Filter = "PDF (*.pdf)|*.pdf";
if (this.openFileDialog1.ShowDialog(this) == DialogResult.OK)
{
textBox1.Text = openFileDialog1.FileName;
}
Step 7: In PDF File2's Select button click event, add the following code
this.openFileDialog1.Filter = "PDF (*.pdf)|*.pdf";
if (this.openFileDialog1.ShowDialog(this) == DialogResult.OK)
{
textBox2.Text = openFileDialog1.FileName;
}
Step 8: In Merge button click event, add the following code
bool bResult;
if (textBox1.Text == "")
return;
if (textBox2.Text == "")
return;
saveFileDialog1.Filter = "PDF file (*.pdf)|*.pdf||";
this.saveFileDialog1.DefaultExt = "pdf";
if (this.saveFileDialog1.ShowDialog(this) == DialogResult.OK)
{
bResult = axImageViewer1.PDFEditMergeWithBookmarks(textBox1.Text, textBox2.Text, saveFileDialog1.FileName, textBox3.Text, textBox4.Text, textBox5.Text);
if (bResult)
MessageBox.Show("Merge Completed");
else
MessageBox.Show("Merge Failed");
}
Download the C# Merge pdf files and Create the Bookmarks sample source code