gmanny / Pechkin

.NET Wrapper for WkHtmlToPdf static DLL. Allows you to utilize full power of the library.
400 stars 128 forks source link

Footer Height #61

Closed mar72vin closed 10 years ago

mar72vin commented 10 years ago

Is there any way to change the footer height?

I am trying to use objCofig.Footer.SetHtmlContent("urltothmlfooter");

this works fine except that my html footer contains a large image that is being cut off because the footer is too small to accommodate.

EDIT: I've also just noticed that although the header appears to be working with a large image, it is actually overlapping the main body. There doesn't seem to be a way to set the content area to accommodate large headers/footers.

mar72vin commented 10 years ago

I found that setting the margins in the globalConfig fixed my issues.

GlobalConfig gc = new GlobalConfig(); gc.SetMargins(200, 10, 180, 10);