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