Click here to Skip to main content
15,883,705 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted
Updated 24-May-11 23:41pm
v2
Comments
ambarishtv 25-May-11 4:57am    
please improve your question
Sandeep Mewara 25-May-11 5:06am    
Not clear.
Kim Togo 25-May-11 5:11am    
What kind of PDF library are you using ?

1 solution

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");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900