PdfCharElement: Width attribute

This commit is contained in:
2017-10-11 16:47:10 +02:00
parent 6b8bbc367f
commit 34e7424273
2 changed files with 10 additions and 4 deletions

View File

@@ -250,9 +250,8 @@ namespace VAR.PdfTools.Workbench
(int)(textElementPageY * Scale),
(int)(textElementWidth * Scale),
(int)(textElementHeight * Scale),
Scale);
5);
using (Font font = new Font("Arial", (int)(textElementHeight * Scale), GraphicsUnit.Pixel))
{
foreach (PdfCharElement c in textElement.Characters)
@@ -266,6 +265,10 @@ namespace VAR.PdfTools.Workbench
(int)((textElementPageX + c.Displacement) * Scale),
(int)(textElementPageY * Scale),
2, 2);
gc.FillRectangle(Brushes.Green,
(int)((textElementPageX + c.Displacement + c.Width) * Scale),
(int)(textElementPageY * Scale),
2, 2);
}
}
}