Headers or watermarks in generated report

Hello guys,

Is there an easy way to include a page header or watermark in the report, so that it would appear in every page (either word or pdf document)?

I have been searching in the internet but no answer found.

Thanks in advance.

1 Like

I think you could use the officer package. It lets you start with a template Word file of your design, with the page header and/or watermark that you want, and generate content to load into a new file.

For PDF output, if you can define your header or watermark using LaTeX, then I believe you can include it in a custom template that RMarkdown will use when processing your Rmd through pandoc.