space1 separator space2  

Code Samples - Neevia PDFmerge/split

Example 7: Split a PDF file by bookmarks - 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()
   {
	IPDFsplitPtr NVSplit;	
	::CoInitialize(NULL); 

	NVSplit.CreateInstance(__uuidof(PDFsplit)); 

	NVSplit->PutSplitByBookmarks(true);

	NVSplit->SplitPDF("c:\\1.pdf", "c:\\out\\");

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