Attach general terms and conditions and terms of delivery to order confirmations and offers

It is important for our business that our customers receive our general terms and conditions and delivery conditions in the email with the offer and order confirmation.

The following code is inserted by default:

{%- if store.terms_of_service.body != blank -%}
{{ store.terms_of_service | attach_as_pdf: “AGB” }}
{%- endif -%}

{%- if store.refund_policy.body != blank -%}
{{ store.refund_policy | attach_as_pdf: “Right of withdrawal” }}
{%- endif -%}

but it does not work.

I have already made test orders.

Does anyone have a solution?

I would also like to have it included in the offers.

I would really appreciate a tip!

Regards
Gerrit