What Python 3 library you can create a PDF with CMYK and SpotColor support?

What Python 3 library you can create a PDF with CMYK and SpotColor support?
Need a library for generating PDF is not difficult, but with support for spot and cmyk colors.
Please tell me.
April 3rd 20 at 17:26
1 answer
April 3rd 20 at 17:28
pypsg.nongnu.org - this library will do?
Looked at the documentation. But I do not understand how to set the fill color.
Tried reportlab
from reportlab.lib.units import mm
from reportlab.lib.colors import PCMYKColor, PCMYKColorSep, CMYKColor, opaqueColor
from reportlab.pdfgen.canvas import Canvas
red = PCMYKColorSep( 0.0, 100.0, 91.0, 0.0, spotName='PANTONE 485 C',density=100)
c = Canvas("hello2.pdf", (3.5*mm,3.5*mm))
c.setFillColor(red)
c.rect(0*mm,0*mm,3.5*mm,3.5*mm, fill=True, stroke=False)
c.save()


That's just not mastered to make the function you want to pass an array [[(0.0, 100.0, 91.0, 0.0),spotName, density],[(0.0, 100.0, 91.0, 0.0),spotName, density], ...]
on the way out. The squares to each other in line should stand. each square has a color and percent of fill from the array. Number of squares = number of elements in the array. - terrell_Greenfelder commented on April 3rd 20 at 17:31
Understood.
Good documentation at the library. - terrell_Greenfelder commented on April 3rd 20 at 17:34
@terrell_Greenfelder, you can Google "python postscript", I'll give some more libraries - bryce.Wintheis commented on April 3rd 20 at 17:37

Find more questions by tags Python