PDFLib set_graphics_option how to pass list of colors in fillcolor option

五迷三道 提交于 2019-12-24 00:38:56

问题


How to pass multiple PANTONE Colors list to PDF library set_graphics_option function?

optList = "fillcolor={spotname {PANTONE 281 U} 1}";
p.set_graphics_option(optlist);

回答1:


How to pass multiple PANTONE Color set to PDF library set_graphics_option function?

Maybe I don't get your question yet, but you can only have one color set at a time. When you want to fill some content with a different color, you have to set the (fill|stroke)color accordingly.

When you want to the stoke and fill color in a single set, you can combine this:

optList = "fillcolor={spotname {PANTONE 281 U} 1} strokecolor={spotname {PANTONE 128 U} 1}";
p.set_graphics_option(optlist);



回答2:


Have you tried raising this with PDFLib support as a bug? I don't know if you can trace the Pantone colour property through PDFLib to see whether the problem is in the SVG loading not picking it up, or whether it's being dropped when assembled into the document maybe, or not being written into the PDF - that might help you find out where the problem is, and if you can fix it yourself. But otherwise this just reads like a bug report and I'm not sure what we can do to help you.



来源:https://stackoverflow.com/questions/58416267/pdflib-set-graphics-option-how-to-pass-list-of-colors-in-fillcolor-option

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!