New to KendoReact? Start a free 30-day trial

Create a Base64 String During PDF Export

Updated on Sep 30, 2026

Environment

ProductProgress® KendoReact PDF Processing
Product Version16.1.0

Description

How can I create a Base64 string 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 to create a Drawing group from the export content, then pass the group to 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.

Example
View Source
Loading ...

See Also

In this article
EnvironmentDescriptionSolutionSee Also
Not finding the help you need?
Contact Support