space1 separator space2  

Code Samples - Neevia PDFmerge/split

Example 3: Merge several PDF files and linearize the output - C++ Copy 

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
   #include "stdafx.h"

   #using <mscorlib.dll>
   #import "PDFmerge.tlb" no_namespace named_guids 
   using namespace System;

   int _tmain()
   {
	IPDFmergePtr NVMerge;	
	::CoInitialize(NULL); 

	NVMerge.CreateInstance(__uuidof(PDFmerge)); 

	NVMerge->PutLinearize(true);
    
	NVMerge->MergePDF("c:\\1.pdf+c:\\2.pdf", "c:\\merged.pdf");

	Console::WriteLine(S"Done.");
	return 0;
   }