blazor-ui icon indicating copy to clipboard operation
blazor-ui copied to clipboard

Show exporting the chart to PDF using the Drawing API

Open Stamo-Gochev opened this issue 2 years ago • 0 comments

See https://bit.ly/3iMN92v (note: private repo)

The current example at: https://github.com/telerik/blazor-ui/tree/master/common/pdf-jpg-export-js

shows exporting the grid to PDF, but the chart is exported to JPG only.

Exporting it to PDF will not work as a separate instance of the Drawing API is instantiated by loading another script: https://github.com/telerik/blazor-ui/blob/ffb971add2408f318cdf3241e2e72de8ffb1707f/common/pdf-jpg-export-js/PdfExportJS/Pages/_Host.cshtml#L35 which prevents the PDF processing to detect the correct DOM elements.

Stamo-Gochev avatar Jul 16 '21 07:07 Stamo-Gochev