# Base64 Strings

To create a Base64 string, use the [`drawDOM`](https://www.telerik.com/kendo-react-ui/components/drawing/api/drawdom) method from the [KendoReact Drawing library](https://www.telerik.com/kendo-react-ui/components/drawing/api) which creates the string based on a passed DOM element.

The example below demonstrates how to get the Base64 string that is generated during the PDF export of the Grid. The string is logged to the console.

[Demo Source](https://demos.telerik.com/kendo-react-ui/pdf/base64/func/source.txt)

## Suggested Links

* [API Reference of the Drawing Library](https://www.telerik.com/kendo-react-ui/components/drawing/api)
* [Export of Drawings in PDF](https://www.telerik.com/kendo-react-ui/components/drawing/pdf-output)
