C# PdfSharp显示的数据不完整

C# PdfSharp显示的数据不完整,c#,pdf,C#,Pdf,我正在使用C#net中的PdfSharp生成PDF 在我的UAT中,pdf生成得很好 但在生产服务器上,不完整的数据显示在PDF的页脚 我的代码如下 string strData = File.ReadAllText(strSourceFilepath); PdfDocument Document = new PdfDocument(); PdfPage Pdfpage = Document.AddPage(); System.Drawing.Size size = new System.D

我正在使用C#net中的PdfSharp生成PDF

在我的UAT中,pdf生成得很好

但在生产服务器上,不完整的数据显示在PDF的页脚

我的代码如下

string strData = File.ReadAllText(strSourceFilepath);

PdfDocument Document = new PdfDocument();
PdfPage Pdfpage = Document.AddPage();

System.Drawing.Size size = new System.Drawing.Size(700, 1000);
System.Drawing.Color color = System.Drawing.Color.White;
System.Drawing.Image image = HtmlRender.RenderToImage(strData, size, color);

XGraphics xGraphics = XGraphics.FromPdfPage(Document.Pages[0]);
xGraphics.DrawImage(image, 0, 0);
// Document.Pages.Add(Pdfpage);
string strFilename = Path.GetFileNameWithoutExtension(strSourceFilepath);
strFilePath = strDestinationFilepath + "\\" + strFilename + ".pdf";
Document.Save(strFilePath);
Document.Close();
return strFilePath;

请提供断开输出的样品PDF对不起!!机密数据