update 20250819 sf
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user