# Macros

By using different kind of macros, the content and the outlook of the exported document can be enhanced.

## Custom field macros

The custom field macro can be used to put document and/or export specific metadata into the document (also into the cover page).

This metadata can be the following:

* Document title
* Document version
* Page number
* Total page number
* Document created
* Document last modified
* Creator full name
* Creator user name
* Last modifier full name
* Last modifier user name
* Export date

Date fields can be formatted using format strings as described in [Formatting dates](https://docs.meta-inf.hu/content-exporter-confluence/user-guides/export-profiles/headers-and-footers#headersandfooters-formattingdates). The format string can be put into the format input box.

## Page bottom macro

With the page bottom macro a user can place a block of text to the bottom on cover pages (For example information about the author, the publisher, and so on).

To add a Page Bottom Macro, do the following:

1\. In the Confluence editor, choose **Insert** -> **Other Macros**.

![](https://1860999847-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRdmWgyGMtYCkkt1hFgr%2Fuploads%2FmoLFGTZo7RamWRf2ZIQa%2Fimage.png?alt=media\&token=a194aa71-4cf2-437c-a871-377f54c64592)

2\. In the **Select Macro** page, find and select the **Page Bottom** macro:

![](https://1860999847-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRdmWgyGMtYCkkt1hFgr%2Fuploads%2Feb3cqheSlLtV4xb67bOo%2Fimage.png?alt=media\&token=57dbb2bf-8345-4bbd-acd6-4c68f9a4373a)

3\. Enter a text:

![](https://1860999847-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRdmWgyGMtYCkkt1hFgr%2Fuploads%2FpqB6mA5SXsPiQjRq7UFR%2Fimage.png?alt=media\&token=991e98f9-b8d5-4a94-9362-6ca5b126e1ec)

Use the `.page-bottom` CSS class to format the macro.

The content will be put at the end of the page.

{% hint style="info" %}
**Note:** It is currently supported for cover pages and for PDF format.
{% endhint %}

## Page break macro

With the page break macro, a page break can be inserted at any place in the document.

To add a Page Break Macro, do the following:

1\. In the Confluence editor, choose **Insert** -> **Other Macros**.

![](https://1860999847-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRdmWgyGMtYCkkt1hFgr%2Fuploads%2FmoLFGTZo7RamWRf2ZIQa%2Fimage.png?alt=media\&token=a194aa71-4cf2-437c-a871-377f54c64592)

2\. In the Select macro page, find and select the **Page break** macro:

![](https://1860999847-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRdmWgyGMtYCkkt1hFgr%2Fuploads%2F5koP72lzaJcqqbSlqYYo%2Fimage.png?alt=media\&token=f0541aef-7654-4714-8e7b-4ce45378848a)

3\. Add the **Page break** macro to start a new page in the export:

![](https://1860999847-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRdmWgyGMtYCkkt1hFgr%2Fuploads%2F9EYEI4LcljR84vPBwurJ%2Fimage.png?alt=media\&token=261136a2-93c0-43cd-aeb6-d6612b17341d)
