Sets the user permissions in the PDF document.
Object.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.
Remarks
Applies To: XFRX#INIT, XFRX#LISTENER, PDFL#INIT, oXFRX
XFRX version: 23.0 for oXFRX
Parameters tlFillFormFields, tlExtractTextAndGraphics, tlAssembleDocument, tlPrintDocumentInLow are since XFRX 16.1.
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