The requirement is to protect pdf and xlsx reports using password which depends on some fields in the record.
That is, when the report is downloaded and tried to open each time, the pasword is asked to access the file.
Suppose there is a field named as "code" in the reord, the the password for the reports will be the value of the field "code".
Thank you.