|
Rank: Member Groups: Member
Joined: 3/16/2012 Posts: 14
|
Hi! In some cases when generating a PDF from HTML, we find that the footer set with HtmlToPdf.Options.FooterHtmlFormat covers part of the content. It doesn't happen all the time, but in some cases it does, and we can't really see why it does so.
I've extracted the code that handles the PDF conversion in our application to a sample VS project so that you could take a look at it and see why it's happening. I've also included an HTML file that triggers the problem. Where can I send the project?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
We have PMed you as to where to send the test project.
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
Please try to remove
margin-bottom: 40px;
from your table_info CSS rule. For some reason this shifts the contents.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 3/16/2012 Posts: 14
|
Hi! Thanks, but that didn't do anything, not in our application or in the sample project I sent. The footer still covers part of the content.
|
|
Rank: Member Groups: Member
Joined: 3/16/2012 Posts: 14
|
Hi! Are you still looking into this? Your idea to remove the bottom margin didn't seem to work.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
Please try to comment your CSS block by block to find out the offending rule. It has to do with your CSS. Margins is one of the most common CSS rule that can affect paging.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 3/16/2012 Posts: 14
|
Hi, Okey, so you don't consider this to be a bug in EO.Pdf?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
Margin will always affects paging because it makes the logical boundary of the element and the visible boundary of the element different. When the converter pages the result, it pages by the logical boundary, which is needed for many cases (for example, when you intentionally use margin top to reserve space before the first title). However because it always pages by the logical boundary, the actual output can appear at the "wrong" place if the visible boundary is different.
Thanks!
|
|