Open manuelnelson opened 11 years ago
There are some issues with fluent notation try changing your code from this:
config.SetAllowLocalContent(true)
.SetPrintBackground(true);
to this (Do this anywhere you've used fluent notation):
config.SetAllowLocalContent(true); config.SetPrintBackground(true);
Thanks. Changed this but it doesn't seem to fix the Content spacing problem unfortunately.
I'm having the same issue. I got around it by using html header/footer - you can just add
a couple of times in the html to increase the vertical height of the header/footer.
eg objConf.Footer.SetHtmlContent(url); or objConf.Header.SetHtmlContent(url);
HTML template here: https://code.google.com/p/wkhtmltopdf/issues/detail?id=306
Here's a snippet of my code. I'm not doing anything too tricky here, and everything seems to work except for the content spacing. All I'm looking for is more margin after the header.
https://gist.github.com/4195776