PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Ignore SpaceBefore at beginning of page
https://forum.pdfsharp.net/viewtopic.php?f=2&t=4045
Page 1 of 1

Author:  Stannieman [ Thu Nov 07, 2019 9:18 am ]
Post subject:  Ignore SpaceBefore at beginning of page

Hi

I'm using MigraDoc (1.50.5147 from NuGet) to generate a PDF report and have SpaceBefore set on some headers.
When a header is at the top of a new page it also sets this space though, and this just wastes some space.
It looks like that's being worked on (see this post), but is there any update on that?

Regards
Stan

Author:  TH-Soft [ Thu Nov 07, 2019 7:31 pm ]
Post subject:  Re: Ignore SpaceBefore at beginning of page

Hi!

I'm not absolutely sure, but I think this change is included with 1.51.

Author:  Stannieman [ Wed Nov 20, 2019 8:15 am ]
Post subject:  Re: Ignore SpaceBefore at beginning of page

I tried with the latest beta that's on NuGet (1.51.5185-beta) and it still behaves the same.
And it looks like the repo on GitHub is at the same version too.

Author:  Thomas Hoevel [ Wed Nov 20, 2019 10:40 am ]
Post subject:  Re: Ignore SpaceBefore at beginning of page

My fault. We made this change internally and did not include it in 1.50 stable because we considered it a "breaking change".
I thought it was included in 1.51 beta, but it is not.

Author:  Thomas Hoevel [ Mon Apr 03, 2023 3:46 pm ]
Post subject:  Re: Ignore SpaceBefore at beginning of page

As of MigraDoc 6.0.0, SpaceBefore is now ignored for the first paragraph on a page.
Version 6.0.0-preview-1 was released today.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/