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

Add Support to pass arguments to wkhtmltopdf #87

Closed flkeller closed 2 years ago

flkeller commented 2 years ago

Hi,

i need the ability to add the authorization header to the the page request like (https://github.com/wkhtmltopdf/wkhtmltopdf/issues/3956): wkhtmltopdf --custom-header Authorization "Bearer TOKEN" http://httpbin.org/bearer foo.pdf

couldn't find anything for that implemented currently.

Maybe it would be a good idea to implement something to pass arguments to wkhtmltopdf

flkeller commented 2 years ago

nevermind, found it in LoadSettings