Header and footer passed in stdin

Is there a way to use WkHtmlToPdf and pass the header / footer directly as an html code as a parameter, and not through an external file?

I am using WkHtmlToPdf in my MVC.NET application wrapped by this solution: http://www.megustaulises.com/2012/12/mvcnet-convert-html-to-pdf-with-pechkin.html

I have some dynamic data that I need to transfer to the header and footer, and I do not want to save it in the file system as an html file only for transferring it to WkHtmlToPdf.

Is there any other solution?

+4
source share

All Articles