Setting Paper margin is overlapping the existing templates - e.g. Product receipt card template

I have increased the margin-top and bottom paper parameter under pdf setup

But when I creating receipt card through typhon template the logo and the other header is overlapping on the address. It seems margin has come down but the content in the template remains the same. I have attached screenshot if anyone has an idea how to correct it.