PDF Encryption provides the function "ispdfencrypted", which is used to determine if the PDF document specified as an input is encrypted. The functions returns true if the PDF document is encrypted and false if it is not.