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
367 stars 66 forks source link

Add support for --post option #6

Closed pshbot closed 3 years ago

pshbot commented 5 years ago

wkhtmltopdf documents a repeatable --post option (under "Page Options") that allows adding additional POST fields to send to the input URL. Could we have an option added to LoadSettings to support this?

HakanL commented 5 years ago

Sure, that's a great idea. Can you submit a PR and I'll get it merged in quickly?

HakanL commented 3 years ago

Added, but untested. Please let me know how to test this, or if you can test it. It's not in NuGet yet.

HakanL commented 3 years ago

@pshbot It's in the latest prerelease on NuGet now (including 0.12.6 of wkhtmltopdf), please test if you can: https://www.nuget.org/packages/Haukcode.WkHtmlToPdfDotNet/1.3.0-test-0.12.6

HakanL commented 3 years ago

In release 1.3.0

pshbot commented 3 years ago

Thanks @HakanL. I am no longer working on the project where this library was being used, so I can't easily test it, sorry.