PDFNet::SetDefaultDiskCachingEnabled(true)
It should be in a tmp folder either off of the root, or home directory. You can set the temp file location, and the persistent cache location, with the following API's
PDFNet::SetPersistentCachePath
PDFNet::SetTempPath