# How to add header and footer to a PDF document

Swing PDF Converter supports Lotus Notes form\* header and footer data as well as custom header and footer.

Header and footer can be enabled in Swing PDF Converter - PDF settings, under "Header/Footer" tab.

{% hint style="info" %}
\*Please note that Swing PDF Converter does not support document title tag (\&W) in form header / footer settings. A workaround for this limitation would be to use Lotus Formula to recreate document title.
{% endhint %}

There are two header/footer options available from this page:

### 1. "**Use header/footer defined on source document form**"

When this option is enabled, Swing PDF Converter looks for document form defined header and footer data and exports it to pdf document.

![](/files/-MlEbCI96aenfnKNzoIO)

### 2. "**Define custom header/footer**"

When this option is enabled, Swing PDF Converter transfers data from "Header" and "Footer" fields in settings document to PDF document.

![](/files/-MlEbuyEUKMf_sLqgZCn)

From PDF Converter version 3.13. it is possible to write Lotus formula to header/footer.

Formula must be nested in "" tags. Syntax:

`<swFormula>...Lotus Formula...</swFormula>`

For example:

`Today is <swFormula>@Today</swFormula>.`

`Time is  <swFormula>@Now</swFormula>.`&#x20;

{% hint style="info" %}
Swing formula tags should be written in the same paragraph style (size, color, style..). \
You can combine text colors for header/footer, only Swing tag style must be uniform.
{% endhint %}

![](/files/-MlEbiFLoXwKtaug_he0)

&#x20;[Please read this article for header and footer management from LotusScript API.](https://sites.google.com/a/swingsoftware.com/lc/pdf-converter/for-developers/lotusscript-code-samples/add-custom-header-footer-to-pdf-document)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.swingsoftware.com/pdf-converter-for-notes/how-to/how-to-add-header-and-footer-to-a-pdf-document.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
