我有以下代码: using System;
using System.Diagnostics;
using System.IO;
using PdfSharp.Pdf.Printing;
namespace PrintPdfFile
{
class Program
{
[STAThread]
static void Main(string[]
无论我是否使用XTextFormatter,我都会得到与LayoutRectangle必须具有0的高度相同的错误,或者类似这样的错误。 new PdfSharp.Drawing.Layout.XTextFormatter(_gfx).DrawString(text
, new PdfSharp.Drawing.XFont(fontName, fontSize, (PdfSharp.Dra