Description:In my project there is a situation where I need to convert my html into pdf file and some one suggested me that there is a library in C# for the purpose called Itextsharp but unable to implement it properly, need a code chunk or method to implement such functionality.
Posted by: Umer khan | Posted on: Sep 07, 2018
4
I am considering that your html contains inline styling which is most suitable for such dynamic pdf generation then you can easily use the following method for the purpose of converting your HTML into PDF, the method will be returning MemoryStream which can be easily downloaded as file.
You can simply call the above method by using the following code for example:
Replied by: Tabish Usman | Replied on: Sep 10, 2018