This commit is contained in:
Kathy Ruffing 2012-01-27 12:48:17 +00:00
parent f8ce342257
commit a5e638833e

View File

@ -207,7 +207,7 @@ namespace Volian.Print.Library
rtfSB.Append("}"); rtfSB.Append("}");
return rtfSB.ToString(); return rtfSB.ToString();
} }
protected static string AddFontTable(System.Drawing.Font font) public static string AddFontTable(System.Drawing.Font font)
{ {
StringBuilder rtfSB = new StringBuilder(); StringBuilder rtfSB = new StringBuilder();
StringBuilder sbbeg = new StringBuilder(); StringBuilder sbbeg = new StringBuilder();
@ -244,7 +244,7 @@ namespace Volian.Print.Library
float fE = iFont.BaseFont.GetWidthPointKerned("!", 12); float fE = iFont.BaseFont.GetWidthPointKerned("!", 12);
return fW == fE; return fW == fE;
} }
protected static iTextSharp.text.Paragraph RtfToParagraph(string rtf) public static iTextSharp.text.Paragraph RtfToParagraph(string rtf)
{ {
IRtfDocument rtfDoc = RtfInterpreterTool.BuildDoc(rtf); IRtfDocument rtfDoc = RtfInterpreterTool.BuildDoc(rtf);
Rtf2iTextSharp rtf2IText = new Rtf2iTextSharp(rtfDoc); Rtf2iTextSharp rtf2IText = new Rtf2iTextSharp(rtfDoc);