You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/11/24 12:28:50 UTC

[GitHub] [echarts] VikasAgarwal1984 commented on issue #16098: Programmatically exporting SVG rendered chart to PDF

VikasAgarwal1984 commented on issue #16098:
URL: https://github.com/apache/echarts/issues/16098#issuecomment-977832964


   AFAIK, Input for pdfmake is svg html or image(png/jpeg)  base64 data.
   
   Currently getDataURL({type: 'svg'}) returns data:image/svg+xml;charset=UTF-8......................
   that is not working as an input.
   
   Currently we read the outerHTML for rendered svg html element and feed to pdfmake api.
   
   Created a stackblitz to demonstrate same. Please see console for error.
   https://stackblitz.com/edit/angular-ivy-sfasil?file=src%2Fapp%2Fechart-basic%2Fechart-basic.component.ts
   
   Is there an Api to get jpeg/png or svg html in case of svg rendering.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org