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
378 stars 67 forks source link

Html Header/Footer support #94

Closed JustasKvederis closed 2 years ago

JustasKvederis commented 2 years 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 2 years 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