:::: MENU ::::

convert html to pdf using c# asp.net and wkhtmlToPdf

wkhtmlToPdf is a console application which converts any given html or webpage url into PDF.
here i am going to convert a webpage or html code into PDF.in the below class i have overloaded function “Convert” which takes HtmlCode or Uri with wkhtmlToPdf executable path.

You can download a complete working solution here. Fyi, The repository contains WkhtmlPdf Console application as well.

 

Please follow and like us:

3 Comments

  • Reply Ali Seif |

    I don’t understand why people prefer such a complicated solutions. Would not it be nice to use an API to generate a code with all the preferences you need and put in in your application then?

So, what do you think ?