update 20250819 sf

This commit is contained in:
Stefan Hutter
2025-08-19 19:00:42 +02:00
parent 3d19016ba1
commit c417227651
287 changed files with 3494578 additions and 3448594 deletions

View File

@@ -437,7 +437,7 @@ namespace Versandstrasse
PdfUsedFont usedfont = get_fontname(ref document);
PdfFont font = new PdfTrueTypeFont(new Font(fname, Convert.ToInt32(fsize)));
PdfFont fnt = new PdfStandardFont(PdfFontFamily.Helvetica, 8);
//PdfFont fnt = new PdfStandardFont(PdfFontFamily.TimesRoman, 8);
Dictionary<int, List<RectangleF>> matchedTextbounds = new Dictionary<int, List<RectangleF>>();
document.FindText(texttoreplace, out matchedTextbounds);
@@ -457,7 +457,7 @@ namespace Versandstrasse
rect.Height = rect.Height + 5;
loadedPage.Graphics.DrawRectangle(PdfBrushes.White, rectangle);
loadedPage.Graphics.DrawRectangle(PdfBrushes.White, rect);
loadedPage.Graphics.DrawString(newtext, fnt, PdfBrushes.Black, rectangle.X - 2, rectangle.Y - 3);
loadedPage.Graphics.DrawString(newtext, font, PdfBrushes.Black, rectangle.X - 2, rectangle.Y - 3);
//if (newtext != "")
//{
// System.Drawing.Image img = DrawText(System.Drawing.Color.Black, System.Drawing.Color.White, "Futura Book", 14, newtext, (int)rect.Width, (int)rect.Height, "", "", 0, 0);