tags:

views:

153

answers:

0

I am using Itext and Java to generate visualizations in PDF format, and I am stuck on how to apply a gradient fill to my path objects.

I am using PDFContentByte directly for low-level control, and I can't find any examples showing how to successfully apply a two-color axial gradient using PDFContentByte. I am assuming the key is using PdfShading and PdfShadingPattern, but I am unclear as to how the shading is applied once I have constructed the path to be shaded.

Would appreciate any tips...