This commit is contained in:
Kathy Ruffing 2012-03-30 10:57:33 +00:00
parent a8a3453c84
commit 4e668096d3

View File

@ -24,6 +24,7 @@ namespace Volian.Print.Library
} }
public override float ToPdf(PdfContentByte cb, float yPageStart, float yTopMargin, float yBottomMargin) public override float ToPdf(PdfContentByte cb, float yPageStart, float yTopMargin, float yBottomMargin)
{ {
cb.SaveState();
MyContentByte = cb; MyContentByte = cb;
float yLocation = CalculateYOffset(yPageStart, yTopMargin); float yLocation = CalculateYOffset(yPageStart, yTopMargin);
// Adjust the starting point for the Macro if the LPI is 7 // Adjust the starting point for the Macro if the LPI is 7
@ -41,6 +42,7 @@ namespace Volian.Print.Library
} }
PrintOverride.SvgColor = push; PrintOverride.SvgColor = push;
if (textLayer != null) cb.EndLayer(); if (textLayer != null) cb.EndLayer();
cb.RestoreState();
return yPageStart; return yPageStart;
} }
} }