PDFEncryptFlags example for Visual C++ 5.0 and later
ILEADRasterIO *pRasterIO=NULL;
CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL,
IID_ILEADRasterIO, (void**)&pRasterIO);
pRasterIO->PutPDFUserPassword ("UserPassword");
pRasterIO->PutPDFOwnerPassword("OwnerPassword");
pRasterIO->PutEnablePDF128bit(true);
pRasterIO->PutPDFEncryptFlags(PDF_SECURITY_REV2_PRINTDOCUMENT);
pRasterIO->Save(m_LEADRasterView1.GetRaster(),
"c:\\test.PDF", FILE_RAS_PDF,
24, (QFactorConstants)QFACTOR_LEAD_0, SAVE_OVERWRITE);
pRasterIO->Release();