---
title: "Export PDF with Document Authoring tools"
canonical_url: "https://www.nutrient.io/guides/document-authoring/working-with-documents/pdf/"
md_url: "https://www.nutrient.io/guides/document-authoring/working-with-documents/pdf.md"
last_updated: "2026-06-11T00:00:00.000Z"
description: "Learn how to efficiently export PDF files using Document Authoring. Get started with our guides and enhance your document workflow."
---

# Seamlessly export PDF files in Document Authoring

Before you start, ensure you have the Document Authoring library installed and running. For more information, check out the [getting started](https://www.nutrient.io/sdk/document-authoring/getting-started.md) guides. Document Authoring supports PDF out of the box, and no additional components are necessary.

Any error handling in the examples below is left out for brevity.

### Exporting PDF

Use the unified [`DocAuthDocument.export()`](https://www.nutrient.io/api/document-authoring/types/docauthdocument/#export) method with `format: 'pdf'`:

```js

// Assuming the `editor` instance exists.

const currentDoc = editor.currentDocument();

// `doc` will be an `ArrayBuffer` containing the raw binary data of the PDF.
const doc = await currentDoc.export({ format: 'pdf' });

```
---

## Related pages

- [Use additional import and export formats](/guides/document-authoring/working-with-documents/additional-import-and-export-formats.md)
- [First-class JSON support with DocJSON](/guides/document-authoring/working-with-documents/docjson.md)
- [Import and export DOCX files effectively](/guides/document-authoring/working-with-documents/docx.md)
- [Working with documents](/guides/document-authoring/working-with-documents/overview.md)
- [Edit documents programmatically](/guides/document-authoring/working-with-documents/programmatic-editing.md)

