Header / Footer Development

I have tried this code, that is properly working in the PDF, but in the print button, it is not working.

Please suggest me a solution .

Thanks.

i have enabled letterhead and i have enabled repeat header and footer option but not occurring every page give solution for this i am stuck in this for almost 1 week.

@gabtzi @Amit_Saxena @anand @Kar_M @rmehta @johnskywalker