KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Margin bottom in pdf #1961

Open Epitello opened this topic on on Mar 11, 2021 - 8 comments

Epitello commented on Mar 11, 2021

Hello, I have one probleme, when i set margin in export view, the margin is applied everywhere excepted at the bottom of the page and the top of the next page. Do you have any solutions to solve this ? Thanks by advance

Epitello commented on Mar 11, 2021

for example i have 118px on margin-left and right but 103px on margin bottom. and i have set margin like this : <body style="margin:118px">

Sebastian Morales commented on Mar 12, 2021

Pls try using with padding-top and padding-bottom to see if it works. Tks,

Epitello commented on Mar 15, 2021

i tryed but i got the same issue

Epitello commented on Mar 15, 2021

is it possible, that I have this problem beacause i'am using table, table-row and table cell for render element side by side ?

Epitello commented on Mar 15, 2021

i have tryed but the dislay table isn't the problem

Epitello commented on Mar 15, 2021

the margin are applied well after a page break but if an element take 2 pages, i have no margin at all.

Sebastian Morales commented on Mar 16, 2021

Please try to add this css rule to your pdf view:

<style>
table, tr, td, th, tbody, thead, tfoot {
    page-break-inside: avoid !important;
}
</style>

Let us know if it works for you or not. Tks,

Epitello commented on Mar 16, 2021

I solved my problem, in fact the problem was with the parent div of the element that had a margin, when I remove it the problem is gone. thank you for everything

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed
solved

Export