I'm doing a small hack to the certificates module so that users can upload their own image files for background, watermarks etc. I've got that bit working OK, but now I want to use the file API to retrieve the stored file when the pdf document is created. I'm very new to Moodle and I can't quite see the correct way to call up the image - and even if it works in this context, how will I get it to work in the context for the person whose certificate it is?
Any insights would be appreciated. Thanks.