PDFsharp & MigraDoc Foundation http://forum.pdfsharp.com/ |
|
Migradoc footer overflowed by table http://forum.pdfsharp.com/viewtopic.php?f=2&t=1130 |
Page 1 of 1 |
Author: | benb [ Wed Apr 07, 2010 2:27 pm ] | ||
Post subject: | Migradoc footer overflowed by table | ||
I have a 3 pages document. On page 1, the table continue on page 2, the footer is Ok *** On page 2, the next table continue on page 3, but the footer is semi-masked but this table on page 3, the footer is Ok My footer is 2 lines and contains an image on 1st line then a text on 2nd line. i add the footer then i add the tables Code: [....] Dim section As MDO.Section = pdfDoc.AddSection() section.PageSetup.OddAndEvenPagesHeaderFooter = False Dim footer As New MDO.HeaderFooter() Dim para As New MDO.Paragraph() Dim font As New MDO.Font() Dim imageFooter As New MDO.Shapes.Image(FooterImage) para.Add(imageFooter) para.AddLineBreak() font.Color = MDO.Colors.SteelBlue para.AddFormattedText("Footer text goes here", font) para.Format.Alignment = MDO.ParagraphAlignment.Center footer.Add(para) section.Footers.Primary = footer CreateReportTable() [...] see screenshot
|
Author: | Thomas Hoevel [ Wed Apr 07, 2010 3:28 pm ] |
Post subject: | Re: Migradoc footer overflowed by table |
benb wrote: On page 2, the next table continue on page 3, but the footer is semi-masked but this table on page 3, the footer is Ok It's a feature, not a bug. Change the PageSetup to reserve enough space for the footers. |
Author: | benb [ Wed Apr 07, 2010 4:14 pm ] |
Post subject: | Re: Migradoc footer overflowed by table |
Could you please tell me which property i have to set? Thank you very much |
Author: | benb [ Wed Apr 07, 2010 7:53 pm ] |
Post subject: | Re: Migradoc footer overflowed by table |
I found my answer. [Section].PageSetup.BottomMargin = Unit.FromCentimeter(x) The bottom margin must be larger than the items added to the footer in my case image + text example if my footer (image+text) is approx. 2cm i had to set [Section].PageSetup.BottomMargin = Unit.FromCentimeter(2.5) |
Author: | LF99 [ Fri Mar 31, 2023 9:55 pm ] |
Post subject: | Re: Migradoc footer overflowed by table |
actually the answer is: [Section].PageSetup.TopMargin = Unit.FromCentimeter(2.5); (distance from the top of the margin to the beginning of the text) but your comment was very helpful! |
Author: | Thomas Hoevel [ Mon Apr 03, 2023 3:53 pm ] |
Post subject: | Re: Migradoc footer overflowed by table |
LF99 wrote: actually the answer is: This topic is about a table overlapping with the footer, so increasing BottomMargin is the solution for this topic.[Section].PageSetup.TopMargin = Unit.FromCentimeter(2.5); If the header overlaps with other contents, then increasing TopMargin could be the solution. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |