Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bottom overlapping onto header of next page #23

Closed
ghost opened this issue Jan 18, 2018 · 2 comments
Closed

Bottom overlapping onto header of next page #23

ghost opened this issue Jan 18, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 18, 2018

I have an issue where the bottom of the page overlaps onto the next page into the header. The amount is variable, some pages overlap more than others.

Below are the settings I use and screenshots attached. Any help would be appreciated.

var doc = new HtmlToPdfDocument()
{
GlobalSettings =
{
ColorMode = ColorMode.Color,
Orientation = DinkToPdf.Orientation.Landscape,
PaperSize = PaperKind.A4
},
Objects =
{
new ObjectSettings()
{
PagesCount = true,
HtmlContent = html,
WebSettings =
{
DefaultEncoding = "utf-8"
},
HeaderSettings =
{
FontSize = 9,
//Right = "Page [page] of [toPage]",
Right = "",
Line = false,
Spacing = 0
}
}
}
};
overlapping

@ghost
Copy link
Author

ghost commented Jan 18, 2018

Some text is also being cut off on the right hand side.

@ghost
Copy link
Author

ghost commented Jan 18, 2018

Looks like the overlapping can be fixed with some css...

wkhtmltopdf/wkhtmltopdf#2367

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant