I have a custom template

Looking at your template, the problem is this line:

<td colspan="150" style="padding: 0 50px;{% if business.logo != null %}background-image:URL({{ business.logo }});background-repeat:no-repeat;background-size:99% 100%;{% endif %}">

Basically PDF button doesn’t support all CSS declarations. So it can view well but printing using PDF button won’t work properly.

What are you trying to achieve?