ProtectionOptions_coAssembly
IPDFDocument3 :: General document methods

See Also Example
Collapse All

This property allows or prohibits assembling the document. The user may not insert, rotate, or delete pages, or create bookmarks or thumbnail images).

Syntax

VARIANT_BOOL ProtectionOptions_coAssembly { get; set; }
Value
VARIANT_TRUE if assembling is allowed, VARIANT_FALSE otherwise.

Remarks

This PDF protection-level property allows users to assemble the document or prevents them from doing so.

Equivalent in new interface: IPDFDocument4::AllowChangeDocument.

Example

How to Protect a PDF Document

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.ProtectionEnabled := true;
PDF.ProtectionKeyLength := ckl128;
PDF.UserPassword = 'userpassword';
PDF.OwnerPassword = 'superpassword';
PDF.ProtectionOptions_coAssembly := false;
PDF.ProtectionOptions_coCopyInformation := false;
PDF.ProtectionOptions_coExtractInfo := false;
PDF.ProtectionOptions_coFillAnnotation := false;
PDF.ProtectionOptions_coModifyAnnotation := false;
PDF.ProtectionOptions_coModifyStructure := false;
PDF.ProtectionOptions_coPrint := true;
PDF.ProtectionOptions_coPrintHigh := true;

PDF.BeginDoc;
{ some document generating code here... }
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->ProtectionEnabled = TRUE;
PDF->ProtectionKeyLength = ckl128;
PDF->UserPassword = "userpassword";
PDF->OwnerPassword = "superpassword";
PDF->ProtectionOptions_coAssembly = FALSE;
PDF->ProtectionOptions_coCopyInformation = FALSE;
PDF->ProtectionOptions_coExtractInfo = FALSE;
PDF->ProtectionOptions_coFillAnnotation = FALSE;
PDF->ProtectionOptions_coModifyAnnotation = FALSE;
PDF->ProtectionOptions_coModifyStructure = FALSE;
PDF->ProtectionOptions_coPrint = TRUE;
PDF->ProtectionOptions_coPrintHigh = TRUE;

PDF.BeginDoc();
// some document generating code here...
PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.ProtectionEnabled = true;
PDF.ProtectionKeyLength = TxCryptoKeyLength.ckl128;
PDF.UserPassword = "userpassword";
PDF.OwnerPassword = "superpassword";
PDF.ProtectionOptions_coAssembly = false;
PDF.ProtectionOptions_coCopyInformation = false;
PDF.ProtectionOptions_coExtractInfo = false;
PDF.ProtectionOptions_coFillAnnotation = false;
PDF.ProtectionOptions_coModifyAnnotation = false;
PDF.ProtectionOptions_coModifyStructure = false;
PDF.ProtectionOptions_coPrint = true;
PDF.ProtectionOptions_coPrintHigh = true;

PDF.BeginDoc();
// some document generating code here...
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.ProtectionEnabled = True
PDF.ProtectionKeyLength = 1 'ckl128
PDF.UserPassword = "userpassword"
PDF.OwnerPassword = "superpassword"
PDF.ProtectionOptions_coAssembly = False
PDF.ProtectionOptions_coCopyInformation = False
PDF.ProtectionOptions_coExtractInfo = False
PDF.ProtectionOptions_coFillAnnotation = False
PDF.ProtectionOptions_coModifyAnnotation = False
PDF.ProtectionOptions_coModifyStructure = False
PDF.ProtectionOptions_coPrint = True
PDF.ProtectionOptions_coPrintHigh = True

PDF.BeginDoc
' some document generating code here...
PDF.EndDoc

See Also

Reference