Removed drawing of circle for debug

remove underline style on font used to output extra blank line
Fixed V.C Summer centerline after End message at bottom of page
This commit is contained in:
2014-01-28 21:30:48 +00:00
parent 6ece6c83ef
commit 8a3c47e8d7
3 changed files with 21 additions and 3 deletions

View File

@@ -185,21 +185,30 @@ namespace Volian.Print.Library
}
private void DrawCenterLine(PdfContentByte cb, float xLoc, float yTop, float yBottom)
{
//iTextSharp.text.Color lineColor = new iTextSharp.text.Color(PrintOverride.OverrideTextColor(System.Drawing.Color.DarkOrange));
cb.SaveState();
if (PageListLayer != null) cb.BeginLayer(PageListLayer);
cb.SetLineWidth(.95f);
cb.SetColorStroke(new Color(PrintOverride.SvgColor));
//cb.SetColorStroke(lineColor);
cb.MoveTo(xLoc, yTop);
float ylast = yTop;
if (_MyGaps != null)
{
foreach (Gap gap in MyGaps)
{
cb.LineTo(xLoc, gap.YTop);
cb.MoveTo(xLoc, gap.YTop - (gap.YTop - gap.YBottom) * YMultiplier);
ylast = gap.YTop - (gap.YTop - gap.YBottom) * YMultiplier;
}
_MyGaps = null;
}
cb.LineTo(xLoc, yBottom);
// put in for V.C. Summer
// the end message for EOP procedure 15.2 was at the very bottom of the page.
// the remaining center line was drawn past the page boarder. there was no need
// to print it for cases like that
if (ylast > yBottom)
cb.LineTo(xLoc, yBottom);
cb.Stroke();
if (PageListLayer != null) cb.EndLayer();
cb.RestoreState();