footer to be displayed only for pdf format

hi.

I want to send a report in sales order wherein the report should contain the footer only l for the pdf format and should not contain the footer in other message formats.