Use the new api to pass the callbacks

Needs ghostscript >= 9.53
3 jobs for master in 2 minutes and 2 seconds (queued for 3 seconds)