This commit is contained in:
parent
2b4e139dbd
commit
323a3cf734
@ -52,6 +52,9 @@ namespace Volian.Print.Library
|
||||
const string BoxAsterisk = " *.* .* . . . . *.* . .* . . ";
|
||||
const string BoxAsteriskWithSides1 = " *.* .* .* . . . *.* . .* . . "; // ip2
|
||||
const string BoxAsteriskWithSides2 = " *. *.*.*. . . *.*. . *. . "; // ip3
|
||||
const string BoxAsteriskTopBottom = "*.*.*. . . .*.*. .*. . "; // fnp
|
||||
const string BoxLineTopBottom = "\x2500.\x2500.\x2500. . . .\x2500.\x2500. .\x2500. . "; // fnp
|
||||
|
||||
public override float ToPdf(PdfContentByte cb, float yPageStart, ref float yTopMargin, ref float yBottomMargin)
|
||||
{
|
||||
if (MyBox == null) return yPageStart;
|
||||
@ -112,8 +115,17 @@ namespace Volian.Print.Library
|
||||
cb.Rectangle(left + llxOffset, bottom - YbxAdjust + (lineThickness / 2), right - left, (Height - lineThickness + 2*YbxAdjust) * MyPageHelper.YMultiplier);
|
||||
break;
|
||||
case BoxAsterisk:
|
||||
case BoxAsteriskTopBottom:
|
||||
DrawAsteriskTopBottom(cb, yPageStart, yTopMargin, yBottomMargin, ref top, ref bottom, left);
|
||||
break;
|
||||
case BoxLineTopBottom: // fnp note box
|
||||
lineThickness = .6f;
|
||||
cb.SetLineWidth(lineThickness);
|
||||
cb.MoveTo(left + llxOffset, bottom);
|
||||
cb.LineTo(right, bottom);
|
||||
cb.MoveTo(left + llxOffset, top);
|
||||
cb.LineTo(right, top);
|
||||
break;
|
||||
case BoxAsteriskWithSides1:
|
||||
case BoxAsteriskWithSides2:
|
||||
DrawAsteriskTopBottom(cb, yPageStart, yTopMargin, yBottomMargin, ref top, ref bottom, left);
|
||||
|
Loading…
x
Reference in New Issue
Block a user