VARIANT_BOOL ProtectionEnabled { get; set; } |
{ PDF object is supposed to be created } PDF.ProtectionEnabled := true; PDF.ProtectionKeyLength := ckl128; PDF.UserPassword = 'userpassword'; PDF.OwnerPassword = 'superpassword'; PDF.ProtectionOptions_coCopyInformation := false; PDF.ProtectionOptions_coModifyAnnotation := false; PDF.ProtectionOptions_coModifyStructure := false; PDF.ProtectionOptions_coPrint := false; PDF.BeginDoc; { some document generating code here... } PDF.EndDoc;
// PDF object is supposed to be created PDF->ProtectionEnabled = TRUE; PDF->ProtectionKeyLength = ckl128; PDF->UserPassword = "userpassword"; PDF->OwnerPassword = "superpassword"; PDF->ProtectionOptions_coCopyInformation = FALSE; PDF->ProtectionOptions_coModifyAnnotation = FALSE; PDF->ProtectionOptions_coModifyStructure = FALSE; PDF->ProtectionOptions_coPrint = false; PDF.BeginDoc(); // some document generating code here... PDF->EndDoc();
// PDF object is supposed to be created PDF.ProtectionEnabled = true; PDF.ProtectionKeyLength = TxCryptoKeyLength.ckl128; PDF.UserPassword = "userpassword"; PDF.OwnerPassword = "superpassword"; PDF.ProtectionOptions_coCopyInformation = false; PDF.ProtectionOptions_coModifyAnnotation = false; PDF.ProtectionOptions_coModifyStructure = false; PDF.ProtectionOptions_coPrint = false; PDF.BeginDoc(); // some document generating code here... PDF.EndDoc();
' PDF object is supposed to be created PDF.ProtectionEnabled = True PDF.ProtectionKeyLength = 1 'ckl128 PDF.UserPassword = "userpassword" PDF.OwnerPassword = "superpassword" PDF.ProtectionOptions_coCopyInformation = False PDF.ProtectionOptions_coModifyAnnotation = False PDF.ProtectionOptions_coModifyStructure = False PDF.ProtectionOptions_coPrint = False PDF.BeginDoc ' some document generating code here... PDF.EndDoc