I'm wondering if it's possible to add some conditional logic in my custom user-driven message template to show some content (in this case, a footer) for messages that are sent as emails, but not to show the content if the message is generated as a PDF.
My use case is for generating thank-you letters for contributions. If I select "generate emails where possible/generate PDFs for contacts who cannot receive email," I want the emails to contain a footer, but I don't want the PDFs to contain the footer, since the footer is already part of stationery that we have.
Is this possible in some way with CiviCRM, or do the email and PDF templates currently have to be identical?