:: Home :: Products :: Technical Support :: About Us :: Contact Us
PDF Printer Driver, Convert to PDF, Print to PDF
Example 2: Split a PDF file into single pages and encrypt output (VC++)  

   #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->PutPDFEncrypt(true);
	NVSplit->PutPDFEncryptionType("rc4");
	NVSplit->PutPDFOwnerPassword("owner");
	NVSplit->PutPDFPermissions("pe");
    
	NVSplit->SplitPDF("c:\\1.pdf", "c:\\out\\");

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

Developing a solution that enables endusers to compress their PDF files is indeed an easy task with Neevia PDFcompress. Thank you!

Andrew Holden

If you have any comments or suggestions about our web site, please feel free to email them to

Copyright © 2014 neeviaPDF.com Home | Products | Support | About Us | Contact Us