Click here to Skip to main content
15,891,762 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
See more:
Hi,

I am using iTextSharp.dll to convert html to pdf with styling. This html is in a string variable.
using Stylesheet class of iTextSharp still not able to make styling.

Is there any link that describe how to apply css with Stylesheet in iTextsharp?


Or is there any other open source dll that could accomplish this task.




Thanks.
Posted
Updated 22-Mar-17 0:09am

Not sure, but maybe this[^] can help.
 
Share this answer
 
Comments
Manish Kumar Namdev 1-Feb-14 8:14am    
Hi I found this good, and it worked.
But I also tried and found another way to do it, where we can apply more styles and Do more things.
I will post an article on this.
 
Share this answer
 
Comments
PurryJoh 4-May-17 4:02am    
Also here is another resource for converting HTML to PDF in C#.
Instead of external CSS files, try with inline styling applied to the page elements itself.
 
Share this answer
 
 
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