Line numbering / background toggle in PDF template

Line numbering / background toggle in PDF template

Hi,

I'm currently building a Print & PDF template for one Report. The related form has a subform I'm inserting in the PDF.

Customizing the page is quite difficult as I try to customize the HTML code. Customizing the subform field is even more limited it seems, and not html can't be changed as it's rewritten each time.

My goal is to either add line numbering to each record, or display a gray background every 2 lines. Is there a way to customize this field and how ?

Also, how can I write my own column header instead of the default labels (mostly to make them shorter). It seems when I remove the labels, they are reinserted upon saving.

Thanks