ststeiger / PdfSharpCore

Port of the PdfSharp library to .NET Core - largely removed GDI+ (only missing GetFontData - which can be replaced with freetype2)
Other
1.06k stars 239 forks source link

Paragraphs added to HeaderFooter footer sections are written to the same position (and thus overlap) #414

Open Extragorey opened 9 months ago

Extragorey commented 9 months ago

When adding multiple paragraphs to a footer section, the paragraphs are all written to the same position, instead of below each other. This only appears to happen in footer sections, not header sections.

Version: PdfSharpCore v1.3.62 (retrieved from nuget)

Example:

var document = new Document();
var section = document.AddSection();
section.Footers.Primary.AddParagraph("Hello world");
section.Footers.Primary.AddParagraph("This overlaps the other line!");

Expected: The two (or more) paragraphs are printed below each other. Actual: Both paragraphs are printed in the same position, hence overlapping.

PdfSharp-glitch