Export SVG elements to PDF?

后端 未结 4 1684
时光说笑
时光说笑 2021-02-05 22:56

I have a visualization generated by d3 (a javascript visualization library similar to Protovis or Raphael, which draws stuff using SVG elements). The vis is interactive, so the

4条回答
  •  执笔经年
    2021-02-05 23:50

    I do not know of any strong PDF libraries on the client side.

    A quick possible way would be to send the svg content to a server, and use something like batik for java to turn the svg to pdf and then send the response to the client again.

    Here is a related SO for the converstion.

提交回复
热议问题