I already can add line using contentStream with methods:
setLineWidth(h) - set line thickness
setLineDashPattern(pattern, period) - pattern create needed space and dots e.g new float[]{0.075,2}
setLineCapStyle(2) - set all dots as rectangle
moveTo(x,y) - set start point
lineTo(x,y) - set end point
stroke() - print line
but now for me need create a gradient from center of dot to edge of dot
Could anybody give me advice how to add gradient?
This is based on the CreateGradientShadingPDF.java example in the source code. The two circles have an identical position but the second one is empty. In the function, c0 is white and c1 is black.
More background on radial shading can be found in the PDF 32000 specification.