[chore:] initial page setup (running sheets)

This commit is contained in:
2026-05-27 09:06:04 +02:00
parent 6c1d0e7a70
commit 57b4ac5001
+12 -5
View File
@@ -435,14 +435,21 @@ public class PdfBuilder
var height = page.Height.Point-margin; var height = page.Height.Point-margin;
gfx.DrawLine(XPens.Black, margin, margin, margin, height); gfx.DrawLine(XPens.Black, margin, margin, margin, height);
gfx.DrawLine(XPens.Black, margin, margin, width, margin); gfx.DrawLine(XPens.Black, margin, margin, width, margin);
gfx.DrawLine(XPens.Black, width, margin, margin, height); gfx.DrawLine(XPens.Black, width, margin, width, height);
gfx.DrawLine(XPens.Black, margin, height, width, margin); gfx.DrawLine(XPens.Black, margin, height, width, height);
var font = new XFont("Times New Roman", 20, XFontStyleEx.BoldItalic); var boldfont = new XFont("Cantarell", 11, XFontStyleEx.Bold);
var font = new XFont("Cantarell", 11, XFontStyleEx.Regular);
var bigboldfont = new XFont("Cantarell", 35, XFontStyleEx.Bold);
gfx.DrawString($"Versand {list.Name}", font, XBrushes.Black, int number = 0;
new XRect(0, 0, page.Width.Point, page.Height.Point), XStringFormats.Center); gfx.DrawString($"Versand {list.Name}", boldfont, XBrushes.Black,
new XRect(margin+5, margin, width-margin, 25), XStringFormats.CenterLeft);
gfx.DrawString($"powered by logofclient", font, XBrushes.Black,
new XRect(margin+5, margin+25, width-margin, 25), XStringFormats.CenterLeft);
gfx.DrawString($"{number}", bigboldfont, XBrushes.Black,
new XRect(margin, margin, width-margin, (height-margin)/2), XStringFormats.Center);
document.Save(path); document.Save(path);
} }