use "process-heading" template mode for generating PDF bookmark attrs.