9 ms·
ReportLab can render gradients, but it's poorly documented. See eg https://stackoverflow.com/questions/452074/creating-a-gradient-fill-in-a-pdf-file-using-repor
by bobince 4y ago
ReportLab can render gradients, but it's poorly documented. See eg https://stackoverflow.com/questions/452074/creating-a-gradient-fill-in-a-pdf-file-using-reportlab https://stackoverflow.com/questions/452074/creating-a-gradie...
I use the method with `canvas.clipPath(path, stroke=False, fill=True)` on a path I've parsed manually from SVG then `canvas.linearGradient`.