我将int更改为decimal?而我现在在我的PdfSharp控制器得到一个错误 gfx.DrawString(job.JobRetainage.ToString("C",
new System.Globalization.CultureInfo("en-US")), BodyFont, XBrushes.Black,
new XRect(460, 160, page
我有一个要求来测量PDF中的文本长度,并且如果长度超过一定数量,则包装该行。我已经在使用PdfSharp库。 我已经使用下面的代码来确定文本的长度。 public static Size MeasureString(string s, Font font)
{
SizeF result;
using (var image = new Bitmap(1, 1))
{