'How do I send a chart in svg/png to PDFMake

I am using Apex Charts to show my data from API. I want to generate a PDF report of my chart and include its image. How should I do it?

This is my stackblitz demo:

https://stackblitz.com/edit/angular-wvjrwz?file=src/app/app.component.ts



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source