B2020-100 Code was not performing the adjustment to the input RTF text before processing it.

This commit is contained in:
Rich 2020-08-26 16:47:44 +00:00
parent 7ca3f6ae0a
commit 227d154ad1

View File

@ -906,8 +906,8 @@ public string Path
{
// B2020-100 Convert old and new form of non-breaking hyphen to hyphen
// So that underline will work properly.
IRtfDocument rtfDoc = RtfInterpreterTool.BuildDoc(rtf);
rtf = FixRTFToPrint(rtf, r, c).Replace(@"\_", "-").Replace(@"\u8209?","-");
IRtfDocument rtfDoc = RtfInterpreterTool.BuildDoc(rtf);
Rtf2iTextSharp rtf2IText = new Rtf2iTextSharp(rtfDoc);
rtf2IText.DefaultFont = mySymFont;
iTextSharp.text.Paragraph para = rtf2IText.Convert();