doutongwei4380 2018-06-27 09:56
浏览 332
已采纳

将rgb SVG渲染为cmyk PDF

I have an existing svg (note: version 1) with colors defined in the RGB colorspace, like this fill="#e6dfd9".

This svg should be used in a printable PDF, for which I'm currently using TCPDF. What would be the best approach to take to convert the svg to cmyk to be print-ready?

Couldn't find a solution using TCPDF for this, so thinking about using Imagemagick to convert the SVG first to cmyk, than use TCPDF to convert to PDF.

Already tried:

  • Using this syntax inside the SVG, which states both a rgb and cmyk color: rgb(255,0,255) device-cmyk(0.03, 0.90, 0.80, 0.00). Colors aren't rendered correctly, this might be due to the svg version.
  • 写回答

2条回答 默认 最新

  • doyrte8419 2018-08-10 14:38
    关注

    Conclusion of the research for now:

    SVG 1.0 is meant for screen display and should not contain cmyk colors, but solely RGB. For later SVG versions (1.1 or 2), icc color profiles or device-cmyk can solve this by containing both an rgb and cmyk value.

    In this case I've had to stick with SVG 1.0 so the color convertion should be done when preparing for print. This means the final colors will depend on the used color profile.

    Thanks anyone helping me out during my research!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器