Sets the user permissions in the PDF document.
XFRX#INIT::setPermissions(tlPrintDocument, tlModifyDocument, tlCopyTextAndGraphics, tlAddOrModifyAnnotations [, tlFillFormFields [, tlExtractTextAndGraphics [, tlAssembleDocument [, tlPrintDocumentInLow]]]] ) XFRX#LISTENER::setPermissions(tlPrintDocument, tlModifyDocument, tlCopyTextAndGraphics, tlAddOrModifyAnnotations [, tlFillFormFields [, tlExtractTextAndGraphics [, tlAssembleDocument [, tlPrintDocumentInLow]]]] )
Parameters
tlPrintDocument
User can print document. Default value is .F.
tlModifyDocument
User can modify document. Default value is .F.
tlCopyTextAndGraphics
User can copy text andgraphics. Default value is .F.
tlAddOrModifyAnnotations
User can add or modify annotations. Default value is .F.
tlFillFormFields
Use can fill form fileds. Default value is .T.
tlExtractTextAndGraphics
User can extract text and graphics. Default value is .T.
tlAssembleDocument
User can assemble document. Default value is .T.
tlPrintDocumentInLow
User can print document in low resolution. Default value is .T.
Examples
LOCAL m.lnErr m.loXFRX=EVALUATE([xfrx("XFRX#INIT")]) m.lnErr=m.loXFRX.SetParams(,,,,.T.,,"PDF") m.loXFRX.setPasswords("owner") m.loXFRX.setPermissions(.T.,.F.,.F.,.F.,.F.,.F.,.F.,.F.) IF m.lnErr<>0 ?m.loXFRX.ErrorMessage(m.lnErr) ELSE ENDIF