private void ParseSVGQuadraticCommand(PDFGraphicsPath path, char cmd, bool absolute, string[] args) { PDFUnit handleX, handleY, endPtX, endPtY; int index = 0; while (index < args.Length) { if (index == 0 || !string.IsNullOrEmpty(args[index])) { if (!AssertParseUnit(args, ref index, cmd, out handleX)) { return; } if (!AssertParseUnit(args, ref index, cmd, out handleY)) { return; } if (!AssertParseUnit(args, ref index, cmd, out endPtX)) { return; } if (!AssertParseUnit(args, ref index, cmd, out endPtY)) { return; } if (absolute) { path.QuadraticCurveTo(new PDFPoint(endPtX, endPtY), new PDFPoint(handleX, handleY)); } else { path.QuadraticCurveFor(new PDFPoint(endPtX, endPtY), new PDFPoint(handleX, handleY)); } } else if (string.IsNullOrEmpty(args[index])) { index++; } } }