HakanL / WkHtmlToPdf-DotNet

C# .NET Core wrapper for wkhtmltopdf library that uses Webkit engine to convert HTML pages to PDF.
GNU Lesser General Public License v3.0
366 stars 66 forks source link

Html Header/Footer support #94

Closed JustasKvederis closed 1 year ago

JustasKvederis commented 1 year ago

Hello is there any way to add html to Header/Footer ? Since setting htmlURL doesn't do anything for me, and The best option would be just to specify the code directly. Is there any way to parse it ?

HakanL commented 1 year ago

The only option is via the HtmlUrl property, but there may be issues loading the URL, it may have to be absolute (not sure what the requirements are). This is all controlled by the native library, see this for reference: https://github.com/wkhtmltopdf/wkhtmltopdf/issues/5015