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条)

报告相同问题?

悬赏问题

  • ¥80 部署运行web自动化项目
  • ¥15 腾讯云如何建立同一个项目中物模型之间的联系
  • ¥30 VMware 云桌面水印如何添加
  • ¥15 用ns3仿真出5G核心网网元
  • ¥15 matlab答疑 关于海上风电的爬坡事件检测
  • ¥88 python部署量化回测异常问题
  • ¥30 酬劳2w元求合作写文章
  • ¥15 在现有系统基础上增加功能
  • ¥15 远程桌面文档内容复制粘贴,格式会变化
  • ¥15 这种微信登录授权 谁可以做啊