SVG专色和切割线 [英] SVG spot color and cut lines

查看:68
本文介绍了SVG专色和切割线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一些使用SVG并使用 TCPDF 将其插入PDF的软件.然后将PDF发送到具有剪切功能的Roland打印机.我想知道如何在SVG中定义专色以告诉打印机在哪里裁切.

I am developing some software that takes an SVG and inserts it into a PDF using TCPDF. The PDF will then get sent to a Roland printer that has the ability to cut. I would like to know how I define a spot colour in the SVG to tell the printer where to cut.

专色的名称为CutContour.我该如何告诉SVG中的路径使用此颜色?

The name of the spot color is CutContour. How would I tell a path in the SVG to use this color?

SVG已准备就绪,不需要生成.

The SVG is ready made and does not need to be generated.

很抱歉不确定因素,但我真的不知道从哪里开始.任何帮助表示赞赏.

Sorry for the uncertainty but I don't really know where to start. Any help is appreciated.

推荐答案

CutContour不是预定义的颜色-从理论上讲,您可以将其分配给SVG中使用的任何颜色.

CutContour is not a predefined color - in theory you can assign to it any color, used in SVG.

为实现这一点,您的PDF生成应用程序/lib应该能够输出分色色彩空间,如下所示.

In order to achieve that, your PDF generating app/lib should be able to output a separation colorspace, like the following.

8 0 obj
[/Separation/CutContour/DeviceRGB<</C0[1.0 1.0 1.0]/C1[0.254898 0.498032 1.0]/Domain[0 1]/FunctionType 2/N 1.0/Range[0.0 1.0 0.0 1.0 0.0 1.0]>>]
endobj

我没有深入研究细节,但是在我的测试样本中/C1值与RGB匹配,我将其定义为CutContour

I did not dig too deep into details, but in my test sample /C1 value matches RGB, I defined as a CutContour

这篇关于SVG专色和切割线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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