[chore:] initial page setup (running sheets)
This commit is contained in:
+13
-6
@@ -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);
|
||||||
gfx.DrawString($"Versand {list.Name}", font, XBrushes.Black,
|
var bigboldfont = new XFont("Cantarell", 35, XFontStyleEx.Bold);
|
||||||
new XRect(0, 0, page.Width.Point, page.Height.Point), XStringFormats.Center);
|
|
||||||
|
|
||||||
|
int number = 0;
|
||||||
|
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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user