update 20260220

This commit is contained in:
Stefan Hutter
2026-02-20 18:04:31 +01:00
parent 9e64ca707d
commit 30d047e33d
100 changed files with 11274 additions and 442 deletions

View File

@@ -610,7 +610,27 @@ namespace Versandstrasse
}
private void Add_EmptyPage(ref PdfLoadedDocument document)
{
document.Pages.Add();
SizeF size = document.Pages[document.Pages.Count-1].Size;
bool landscape = false;
// Determine orientation based on size
if (size.Width > size.Height)
{
landscape = true;
}
else
{
landscape = false;
}
PdfPage page = (PdfPage)document.Pages.Add();
if (landscape == true)
{
page.Section.PageSettings.Size = PdfPageSize.A4;
page.Section.PageSettings.Width = size.Width; // A4 landscape width
page.Section.PageSettings.Height = size.Height; // A4 landscape height
}
}
public Image DrawText(Color foreColor, Color backColor, string fontName, int fontSize, string txt, int width, int height, string zusatz, string zusatzfontname, int zusatzfontsize, int rotation)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.