---
title: "Confluence PDF and Word export"
canonical: "https://support.appfire.com/space/CDML/649530727/Confluence%20PDF%20and%20Word%20export"
format: markdown
---
> Macro (aura-html)


## Overview

This page describes how the Comala Document Management app integrates with Confluence’s native **PDF** and **Word** export features when using [same-space publishing](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649794062).

![image](media://80c55f37-1a78-4630-86fe-6b111da27c98)

## Page-level export

When exporting pages and blog posts as PDF or Word the current state of content will be published, respecting workflow Published vs. Draft if using [same-space publishing](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649794062).

| **Workflow state type** | **Notes** |
| --- | --- |
| **No applied workflow** | The latest version of the content is exported |
| **Unrestricted state**<br>![image](media://a06f7739-7327-4d02-85bc-c63e8f4afb65) | The latest version of the content is exported |
| **Draft state**<br>![image](media://20eec599-72d6-482d-9439-f5555fa289d4) | The draft version being viewed is exported<br>- User needs edit permission |
| **Published (final) state**<br>![image](media://5b10bb61-6d19-4b20-8e58-5baebe06140a) | The published (last approved) version is exported |

> 📝 The published version is the content version created the last time a transition to the **final** state occurred.

In same-space publishing, if the **final** state content is edited and there is no transition to another state

- The version in the **final** state changes, but
- The published version does not change until another transition into the **final** state takes place

To ensure that content in the **final** state is always the published version, add the **[updated](https://appfire.atlassian.net/wiki/spaces/CDML/pages/650120593)**[ transition](https://appfire.atlassian.net/wiki/spaces/CDML/pages/650120593) to the final state.

See: [State status indicator circles](https://appfire.atlassian.net/wiki/spaces/CDML/pages/650152863) and [Publishing](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649923873).

## Draft content export

When exporting draft content, the associated workflow state is shown in the output, under the page title, as shown below

![image](media://6e01af0b-5112-416b-8cfa-c76b7759c773)

By default, only users with [edit or admin permissions](https://appfire.atlassian.net/wiki/spaces/CDML/pages/650217543) can view draft content.

When this page was exported as a PDF

- The content was considered draft content
- It was still in the workflow state named **Draft**
- There was no workflow history of a previous transition to the final state (no published version had been created)

Once a published version has been created on a transition to the **final** state

- The native export options default to exporting the published version
- The state name does not appear in the export

## Space-level export

At the space level, we only integrate with the **PDF** export:

- **Pages without workflows applied**, the latest version is exported as usual
- **Pages with workflows**
  - Where workflow does not have a `final=true` state in the workflow, the latest version is exported as usual
  - Where workflow includes a `final=true` state, only the published content version is exported; draft content is not exported.

There is no way to export a draft version of content with the space-level PDF export.

If the space is exported as **HTML** or **XML**, the latest versions of all pages will be included.

## Related pages  

- [https://appfire.atlassian.net/wiki/spaces/CDML/pages/649531097](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649531097)
- [https://appfire.atlassian.net/wiki/spaces/CDML/pages/649923655](https://appfire.atlassian.net/wiki/spaces/CDML/pages/649923655)

**External**

- [https://confluence.atlassian.com/doc/export-content-to-word-pdf-html-and-xml-139475.html](https://confluence.atlassian.com/doc/export-content-to-word-pdf-html-and-xml-139475.html)