fpanaccia / Wkhtmltopdf.NetCore-deprecated

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

How to set options like header? #8

Closed Saad-Alothman closed 4 years ago

Saad-Alothman commented 5 years ago

Thank you for sharing the library with the community!

I was just playing around with the library and i tried to set the header for the PDF, after looking at the code, i was able to do that by casting IGeneratePdf to the Implementation (GeneratePdf) , from there i can access the header.

is there another way to do it?

fpanaccia commented 5 years ago

Hi, sorry for the delay, actually i have never had the need to use headers.

Currently, im with little free time, so if you wanna, you can show how you do it, and we can add it to the library, or just make the PR

fpanaccia commented 4 years ago

Hi, i just pushed a new version, and you will find that you can do it without the need to do some casting