:: Home :: Products :: Technical Support :: About Us :: Contact Us
PDF Printer Driver, Convert to PDF, Print to PDF
Example 2: Merge several PDF files and encrypt the output (VC++)  

   #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->PutPDFEncrypt(true);
	NVMerge->PutPDFEncryptionType("rc4");
	NVMerge->PutPDFOwnerPassword("owner");
	NVMerge->PutPDFPermissions("pe");
    
	NVMerge->MergePDF("c:\\1.pdf+c:\\2.pdf", "c:\\merged.pdf");

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

After testing PDFsign I can certainly say that it makes the signing of PDF documents easy for anyone who needs to perform such a task.

Martin Leary

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

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