public void CurveTo(float x2, float y2, float x3, float y3) { if (inText) { if (autoControlTextBlocks) { EndText(); } else { throw new IllegalPdfSyntaxException( MessageLocalization.GetComposedMessage("path.construction.operator.inside.text.object")); } } content.Append(x2).Append(' ').Append(y2).Append(' ').Append(x3).Append(' ').Append(y3).Append(" v").Append_i(separator); }
//copied this because of the moveTo public void Arc(float x1, float y1, float x2, float y2, float startAng, float extent, PdfContentByte cb) { List<float[]> ar = PdfContentByte.BezierArc(x1, y1, x2, y2, startAng, extent); if (ar.Count == 0) return; float[] pt = ar[0]; //moveTo(pt[0], pt[1]); for (int k = 0; k < ar.Count; ++k) { pt = ar[k]; cb.CurveTo(pt[2], pt[3], pt[4], pt[5], pt[6], pt[7]); } }