diff --git a/PROMS/Volian.Svg.Library/iTextSharp.cs b/PROMS/Volian.Svg.Library/iTextSharp.cs index 8b1d204c..cd684d44 100644 --- a/PROMS/Volian.Svg.Library/iTextSharp.cs +++ b/PROMS/Volian.Svg.Library/iTextSharp.cs @@ -703,8 +703,15 @@ namespace Volian.Svg.Library int stindx = text.IndexOf("\\"); while (stindx != -1) { - if (stindx+2 < text.Length-1 && text.ToUpper().IndexOf("UL",stindx+1)==stindx+1) //don't replace it - stindx = text.IndexOf("\\",stindx+1); + if ((stindx + 2 < text.Length - 1 && text.ToUpper().IndexOf("UL", stindx + 1) == stindx + 1) || //don't replace it + // B2020-041: PSI (this happened for all pagelist items) print doesn't resolve super/sub script, bold, italics: + (stindx + 2 < text.Length - 1 && text.ToUpper().IndexOf("UP", stindx + 1) == stindx + 1) || + (stindx + 2 < text.Length - 1 && text.ToUpper().IndexOf("B ", stindx + 1) == stindx + 1) || + (stindx + 2 < text.Length - 1 && text.ToUpper().IndexOf("B0", stindx + 1) == stindx + 1) || + (stindx + 2 < text.Length - 1 && text.ToUpper().IndexOf("DN", stindx + 1) == stindx + 1) || + (stindx + 2 < text.Length - 1 && text.ToUpper().IndexOf("I ", stindx + 1) == stindx + 1) || + (stindx + 2 < text.Length - 1 && text.ToUpper().IndexOf("I0", stindx + 1) == stindx + 1)) + stindx = text.IndexOf("\\", stindx + 1); else { text = text.Remove(stindx,1);