Welcome Guest Search | Active Topics | Sign In | Register

EO.Pdf: Footer covering the content Options
anders.ekdahl
Posted: Monday, May 6, 2013 10:36:38 AM
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?
eo_support
Posted: Monday, May 6, 2013 5:47:07 PM
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!
eo_support
Posted: Tuesday, May 7, 2013 3:56:39 PM
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!
anders.ekdahl
Posted: Wednesday, May 8, 2013 7:38:22 AM
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.
anders.ekdahl
Posted: Tuesday, May 14, 2013 12:51:26 AM
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.
eo_support
Posted: Tuesday, May 14, 2013 8:53:31 AM
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!
anders.ekdahl
Posted: Tuesday, May 14, 2013 8:54:35 AM
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?
eo_support
Posted: Tuesday, May 14, 2013 9:08:14 AM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.