ImageEn, unit iexUserInteractions

TIEPdfViewer.DocumentPermissions

TIEPdfViewer.DocumentPermissions

Declaration

property DocumentPermissions: TIEPdfPermissions;

Description

Returns the security permissions of the currently loaded PDF document. This determine what operations the PDF creator has permitted for the document.
Permission Description
ieppPrint Document can be printed (low quality)
ieppModify Document contents can be modified
ieppCopy Text and images can be copied or extracted
ieppAnnotForm Annotations and form fields can be added or modified
ieppFillForms Form fields can be filled in
ieppExtract Text and images can be extracted for accessibility
ieppAssemble Document can be assembled (insert, rotate or delete pages)
ieppPrintHigh Document can be printed at high quality

Note:
If the document has no security restrictions, all permissions will be included in the set
DocumentPermissions reflects the user password permissions. If the document was opened with the owner password, all operations are permitted regardless of the permission flags

Example

// Check if printing and copying are allowed
if ieppPrint in IEPdfViewer1.DocumentPermissions then
  ShowMessage( 'Printing is allowed' )
else
  ShowMessage( 'Printing is blocked' );

if ieppCopy in IEPdfViewer1.DocumentPermissions then
  ShowMessage( 'Copying is allowed' )
else
  ShowMessage( 'Copying is blocked' );

See Also

Document
DocumentSize