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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user