-
Given the attached classes (which we suggest are moved to an iText package), the following method in PdfGraphics2D needs to be modified as follows:
/**
* @see Graphics#drawPolyline(int[], int[], int)
*/
public void drawPolyline(int[] x, int[] y, int nPoints) {
/* EXISTING CODE:
Line2D line = new Line2D.Double(x[0],y[0],x[0],y[0]);
for (int i =...
2007-05-18 06:56:49 UTC in iText, a JAVA-PDF library
-
File Added: PolylineShapeIterator.java.
2007-05-18 06:55:00 UTC in iText, a JAVA-PDF library
-
File Added: PolylineShape.java.
2007-05-18 06:54:08 UTC in iText, a JAVA-PDF library
-
Hi,
The Graphics2D implementation in iText does not correctly render styled (eg dashed) polylines - each line segment is rendered independently, causing the style to be "reset" for each line segment.
In some cases this, this produces *very* bad results.
A fix is attached for consideration and inclusion in iText.
2007-05-18 06:52:37 UTC in iText, a JAVA-PDF library