Pr_content_copy, Pr_content_copy 423, Syntax – Kofax DM API User Manual
Page 443: Parameters usage, Example
DM API T
OKENS
423
%PR_CONTENT_COPY
%PR_CONTENT_COPY
This token identifies whether or not a user has authority to copy the
contents of the current document.
Syntax
PCDDocObject.HasRight(“%PR_CONTENT_COPY”, _
intAccessRights)
Parameters
Usage
The
HasRight
method describes the access rights setting for this token.
See its discussion of
Example
'Create a doc object.
pDocObject = CreateObject("PCDClient.PCDDocObject.1")
'Check the errors.
checkError(pDocObject, "ERROR_CREATESEARCH")
'Set the user's access security (DST), and the FRM file.
pDocObject.SetDST(strDST)
'Set the object type (form).
pDocObject.SetObjectType("cyd_defprof")
'Set the library name and and document number/version.
pDocObject.SetProperty("%TARGET_LIBRARY", library)
pDocObject.SetProperty("%OBJECT_IDENTIFIER", docnumber)
pDocObject.SetProperty("%VERSION_ID", version)
'Get the requested information.
pDocObject.Fetch()
%PR_CONTENT_COPY
The token that indicates the application
should report whether or not the user
has sufficient rights to copy the content
of the document.
intAccessRights
The user’s access rights. The rights
mask is an unsigned 32-bit integer.