--- title: Create a Base64 String During PDF Export description: 'Create a PDF data URI and extract its Base64 payload with KendoReact Drawing.' type: how-to page_title: Create a Base64 String During PDF Export - KendoReact PDF Processing slug: pdf-base-64-string tags: pdf processing, pdf, base64, drawing, export res_type: kb category: knowledge-base components: ["pdfprocessing"] --- ## 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`](slug:api_kendo-drawing_drawdom) to create a Drawing group from the export content, then pass the group to [`exportPDF`](slug:api_kendo-drawing_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. ## See Also - [KendoReact PDF Processing Base64 Strings](slug:base64_pdf)