我可以把SVG和外部CSS转换为EPS吗? [英] Can I turn SVG and external CSS into EPS?

查看:438
本文介绍了我可以把SVG和外部CSS转换为EPS吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几千个d3图表,我的客户想要打印他们的报告。客户需要他们在EPS。我已经购买Illustrator来转换它们,但是当我打开SVG文件格式化已经消失了。这也成立,即使我把CSS放入html页面本身,而不是外部。有什么办法我可以把CSS + SVG转换成EPS?

I have several thousand d3 charts and my client wants to print them for a report. The client needs them in EPS. I have bought Illustrator to convert them but when I open the SVG file the formatting has disappeared. This holds even when I put the CSS into the html page itself and not externally. Is there any way I can turn CSS + SVG into an EPS?

推荐答案

我只是在我的插画家尝试这种方法,它遵循 svg /> 元素。

I just tried this approach in my illustrator and it does honor the CSS declarations inside the <svg /> element.

<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width=".." height=".." viewBox="..">
 <style type="text/css">
     <![CDATA[
        polygon{
            fill:none;
        }
        #myPath{
          /*styles here*/
        }
     ]]>
 </style>
  <!-- SVG content -->
</svg>

然后,我可以将SVG保存为应用CSS样式的EPS。

I was then able to save my SVG as an EPS with the CSS styles applied.

这篇关于我可以把SVG和外部CSS转换为EPS吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆