任何想法如何将RTF转换为文本格式并保留样式和字体?将RTF转换为PDF格式
注:
我想避免使用System.Windows.Forms
更新
我在RTF
<P style="TEXT-ALIGN: center; MARGIN: 0in 0in 0pt" class=MsoNormal align=center><FONT
face=Calibri><SPAN style="LINE-HEIGHT: 115%; FONT-SIZE: 14pt"><STRONG>Questions and
Answers<BR style="mso-special-character: line-break"></STRONG><BR style="mso-specialcharacter:
line-break"></SPAN><SPAN style="LINE-HEIGHT: 115%; FONT-SIZE:
12pt"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office"
/><o:p></o:p></SPAN></FONT></P>
...
#558ED5; mso-style-textfill-fill-themecolor: text2; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfillfill-
colortransforms: 'lumm=60000 lumo=40000'"><FONT color=#3366ff><SPAN style="LINEHEIGHT:
115%; FONT-SIZE: 14pt"><A title="Context Menu Default Items"
href="http://PG1/FocusOrthoServer/Images/Help/Helps/FocusOrthoHelp.aspx?HelpPageID=368"
target=_blank><FONT size=3 face="Times New Roman">Context Menu Default
Items</FONT></A></SPAN></FONT></SPAN></U><FONT
color=#000000>.<o:p></o:p></FONT></SPAN></P></FONT></FONT><o:p></o:p>
里面居然显示帮助文本,这样的事情。我需要将该文本写入PDF,因为它是!
P.S
我使用iTextSharp的
纯文本没有样式和字体,你是什么意思? –
你是什么意思'文本格式? ASCII文本没有任何样式或字体。 – paqogomez
你想要哪种文本格式?我不知道包含样式和字体信息的任何纯的纯文本格式(除非你是某种文档的XML repesentation的) – Baldrick