Afterprint event - how to get filename?

I’m trying to write a plugin that’s notified when a PDF is exported and does some post-processing on the PDF. I’ve found the afterprint event, but I can’t figure out how to get the filename of the exported PDF from that event, if that’s even possible?