PDFEncryptFlags example for Delphi

   LEADImage1.PDFUserPassword:= 'UserPassword';
   LEADImage1.PDFOwnerPassword:= 'OwnerPassword';
   LEADImage1.PDFEnable128bit:= True;
   LEADImage1.PDFEncryptFlags:= PDF_SECURITYFLAGS_REV2_PRINTDOCUMENT;
   LEADImage1.Save ( 'c:\test.PDF', FILE_RAS_PDF, 0, 0, SAVE_OVERWRITE );