Print as pdf and pdf are totally different

I can replicate the displacement of the logo on macOS. It is behavior that appeared at least as early as v22.3.34. It occurs only with custom themes. The problem seems to be related to changes in the style definition for display of the business logo. The code in the Plain theme has changed. The old Plain theme included this line:

{% if business.logo != null %}<td style="text-align: right"><img src="{{ business.logo }}" style="max-height: 150px; max-width: 300px" /></td>{% endif %}`

The new Plain theme substitutes this line:

{% if business.logo != null %}<td style="text-align: end"><img src="{{ business.logo }}" style="max-height: 150px; max-width: 300px; display: inline" /></td>{% endif %}

In my tests, making the same substitution into custom themes resolved the problem. But that may depend on what else you have changed or added in your custom theme. (I only tested two.) I am moving this topic to bugs so @lubos can determine whether other changes may also cause problems.

The bottom line seems to be that the Plain theme had to be changed to accommodate alterations made elsewhere. Only if we know what those alterations were can we be sure we’ve revised all necessary aspects of our custom themes.

3 Likes