B2020-100 Convert old and new form of non-breaking hyphen to hyphen so that underline will work properly.
This commit is contained in:
parent
003874be8f
commit
3b1a01df4e
@ -904,8 +904,10 @@ public string Path
|
||||
}
|
||||
private iTextSharp.text.Paragraph RtfToParagraph(string rtf, iTextSharp.text.Font mySymFont,int r, int c)
|
||||
{
|
||||
rtf = FixRTFToPrint(rtf, r, c).Replace(@"\_", "-");//B2020-100 RHM Convert new form of non-breaking hyphen to hyphen
|
||||
// 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?","-");
|
||||
Rtf2iTextSharp rtf2IText = new Rtf2iTextSharp(rtfDoc);
|
||||
rtf2IText.DefaultFont = mySymFont;
|
||||
iTextSharp.text.Paragraph para = rtf2IText.Convert();
|
||||
|
Loading…
x
Reference in New Issue
Block a user