I've tried to tweak the example linked to for version 0.8.5 but have not had any luck - the placeholders for the page numbers don't get replaced.
I've set
$options->set('isPhpEnabled', true);
and
changed
$font = Font_Metrics::get_font("helvetica", "bold");
to
$font = $fontMetrics->getFont('helvetica', 'bold');
but no luck. Any ideas?
Thanks,
Joseph