# Create a Base64 String During PDF Export

## Environment

| Product         | Progress® KendoReact PDF Processing |
| --------------- | ----------------------------------- |
| Product Version | 16.1.0                              |

## Description

How can I create a [Base64 string](https://developer.mozilla.org/en-US/docs/Glossary/Base64) from a PDF export using KendoReact Drawing?

This KB also answers the following questions:

* How do I get a PDF data URI from KendoReact Drawing?
* How can I extract PDF Base64 data before I upload it?
* How do I convert exported DOM content to a Base64 PDF payload?

## Solution

Use [`drawDOM`](https://www.telerik.com/kendo-react-ui/components/drawing/api/drawdom) to create a Drawing group from the export content, then pass the group to [`exportPDF`](https://www.telerik.com/kendo-react-ui/components/drawing/api/pdf/exportpdf). The resolved PDF data URI contains the Base64 payload after `;base64,`.

The following example creates a data URI from a shipment summary and displays the extracted Base64 prefix.

[Demo Source](https://demos.telerik.com/kendo-react-ui/knowledge-base/pdf/pdf-base-64-string/source.txt)

## See Also

* [KendoReact PDF Processing Base64 Strings](https://www.telerik.com/kendo-react-ui/components/pdfprocessing/base64string)
