update 20260220
This commit is contained in:
1 parent
9e64ca707d
commit
30d047e33d
100 files changed
+11274
-442
No files matched your search
@@ -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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user