使用TEXT COLOR,IN C#创建PDF [英] Create PDF with TEXT COLOR,IN C#

查看:77
本文介绍了使用TEXT COLOR,IN C#创建PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题:
textAndtable.AddText(165,143,矩形矩形标题",12,"T3",Align.CenterAlign);
我想要用红色或...颜色的圆形矩形标题"格式,但不要用黑色,而只能使用PDF库
你能帮我吗?

我有一个代码:
textAndtable.AddText(165,143,矩形矩形标题",12,"T3",Align.CenterAlign);
我想更改此文本的颜色"textAndtable.AddText(165,143,矩形矩形标题",12,"T3",Align.CenterAlign);通过使用pdf

i have a question:
textAndtable.AddText(165, 143, "Round Rectangle Header", 12, "T3", Align.CenterAlign);
i want "round Rectangle Header" format with color red or.... but don''t black and only use PDF library
can you help me?

i have a code:
textAndtable.AddText(165, 143, "Round Rectangle Header", 12, "T3", Align.CenterAlign);
i want to change color of this text "textAndtable.AddText(165, 143, "Round Rectangle Header", 12, "T3", Align.CenterAlign);" to Red by using pdf

推荐答案

到红色,我有答案:
i have answer:
String htmlText =<html><head><title font-size=''30px''>Web Media Soft</title></head><body><div style=''color:red;font-size:10px;''>dgshgdfhdf</div>"+
            "<div><ol><li>123456</li><li>123456</li><li>123456</li><li>123456</li></ol><br/><div style=''text-align:right;padding-right:60%''><img  src=''logo.png'' /><textarea id=''TextArea1'' cols=''20'' rows=''2''>dfgdgd</textarea></div></div>" +
            "<table border=''1''><tr><td style=''color:red;text-align:right;width:20px''>123456</td><td style=''color:green''>78910</td><td style=''color:red;width:20%''>ASFAFA</td></tr><tr><td style=''color:red;text-align:right''>123456</td><td style=''color:green;width:60%''>78910</td><td style=''color:red;height:20px''><img  src=''arow_menu_left.gif'' /></td></tr></table><h3>hdtjfjsdkjgvbzxmdbfkds.jfmfbs</h3></body></html> ;
HTMLToPdf(htmlText, "PDFfile.pdf");


这篇关于使用TEXT COLOR,IN C#创建PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆