Back to Devexpress

TdxPDFDocument.AllowPrinting Property

vcl-dxpdfdocument-dot-tdxpdfdocument-8d164e97.md

latest1.9 KB
Original Source

TdxPDFDocument.AllowPrinting Property

Identifies if it is possible to print the loaded PDF document.

Declaration

delphi
property AllowPrinting: Boolean read;

Property Value

TypeDescription
Boolean

True if users can print the loaded PDF document; otherwise, False.

|

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

TdxPDFDocument.AllowContentExtraction

Password Protection

TdxPDFDocument Class

TdxPDFDocument Members

dxPDFDocument Unit