I moved this to its own thread so it wasn’t lost, but the OP originally posted it in reply here:
Customising PDF formatting