fpanaccia / Wkhtmltopdf.NetCore-deprecated

Rotativa + Net Core
The Unlicense
220 stars 94 forks source link

Possible to expose Replace Options ? #23

Closed julienGrd closed 4 years ago

julienGrd commented 4 years ago

Hello, and thanks for your library !

Do you think its possible to expose te replace parameter of wkhtmltopdf ? (https://stackoverflow.com/questions/26985285/how-to-use-replace-in-wkhtmltopdf) it will allow to use custom variable in header and footer, otherwise we can only load static html on these part !

Thanks !

Ayiadim commented 4 years ago

I've created a pull request for this here

fpanaccia commented 4 years ago

Hi! sorry for the delay thanks for the pull request!, this weekend i will take a look at the PR and add the new functionality to the example

fpanaccia commented 4 years ago

Hi!, sorry for the delay! i have merge the merge request, pushed the new version of the nuget (https://www.nuget.org/packages/Wkhtmltopdf.NetCore/3.0.1) and also pushed an example fo how to use it in this commit https://github.com/fpanaccia/Wkhtmltopdf.NetCore.Example/commit/cb5fff6a5879857720871e6f8b5f6b2445b1b63d (the method FooterTest in the TestViewsController.cs)

Thanks for the request @julienGrd and thanks for the help @Ayiadim !