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

Missing `HeaderSettings.HtmlContent` #75

Closed asbjornu closed 2 years ago

asbjornu commented 2 years ago

ObjectSettings has an HtmlContent property which provides a useful way to assign HTML content without having to store it on disk anywhere. The HeaderSettings class has an HtmlUrl property, but lacks an HtmlContent property. It would be nice if HeaderSettings.HtmlContent was made available as an alternative to HeaderSettings.HtmlUrl.

HakanL commented 2 years ago

Good suggestion, feel free to offer a PR!

HakanL commented 2 years ago

Actually, I don't think the parent native library supports this, so without support there it can't be supported in this wrapper. Best would probably to raise an issue/feature request with wkhtmltopdf.