TdxPDFDocument.AllowPrinting Property
Identifies if it is possible to print the loaded PDF document.
Declaration
property AllowPrinting: Boolean read;
Property Value
| Type | Description |
|---|---|
| Boolean |
|
Remarks
The AllowPrinting property returns False if an encrypted document is loaded with a user password and has no print permission (that is, the pdpAllowPrint flag is not set in the SecurityOptions.Permissions property). Otherwise, the property returns True.
A ShowPrintDialog procedure call has no effect and the following end-user commands are disabled in a PDF Viewer control if the AllowPrinting property returns False:
- The ShowPrintForm command.
- The Print… item in the control’s context menu.
- The Ctrl+P key combination.
Refer to the following topic for detailed information on the document print functionality: How to Print PDF Documents.
See Also