开发者

Export HTML with SVG chart to PDF [closed]

开发者 https://www.devze.com 2023-03-04 20:10 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 8 years ago.

开发者_JS百科 Improve this question

Is there any library that supports exporting html and SVG to PDF?


I'd render the SVG separately from the HTML and include it as an image file from within the HTML code.

wkhtmltopdf is a free and open source html renderer, so maybe it'll work for you. Better yet, it might even render SVG by default.


Tried PD4ML ?


I ended up using EVOPDF, it's been working great so far with SVG's and complex HTML.


I was looking for a solution to the same problem and came across EOpdf!. I tried the demo and it seems to work well, although it appears to rasterize SVG and canvas graphics?


wkhtmltopdf Can generate PDFs from HTML with SVG images. However there are some requirements to the way SVG should be formatted and embedded in HTML. Please see my response to question to get the details.


wkhtmltopdf works with SVG as well and works perfect, but you might have to run it as different process as it is a command line tool.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号