C# 使用asp.net和C实现web应用程序中的逐页文本渲染#
嗨,C# 使用asp.net和C实现web应用程序中的逐页文本渲染#,c#,asp.net,text-rendering,C#,Asp.net,Text Rendering,嗨, 我有一个大的html格式的文本。我想在页面中显示文本(如MS Word)。有什么方法可以做到这一点吗?最好的方法是将其呈现在带有组件的PDF中(可以是或其他解决方案) Doc theDoc=new Doc(); DOC.Rect.插图(72144); theDoc.Page=theDoc.AddPage(); int theID; theID=doc.AddImageUrl(“http://www.yahoo.com/"); while(true){ theDoc.FrameRect()
我有一个大的html格式的文本。我想在页面中显示文本(如MS Word)。有什么方法可以做到这一点吗?最好的方法是将其呈现在带有组件的PDF中(可以是或其他解决方案)
Doc theDoc=new Doc();
DOC.Rect.插图(72144);
theDoc.Page=theDoc.AddPage();
int theID;
theID=doc.AddImageUrl(“http://www.yahoo.com/");
while(true){
theDoc.FrameRect();//添加黑色边框
如果(!theDoc.Chaineable(theID))
打破
theDoc.Page=theDoc.AddPage();
theID=DOC.AddImageToChain(theID);
}
对于(int i=1;i
Doc theDoc = new Doc();
theDoc.Rect.Inset(72, 144);
theDoc.Page = theDoc.AddPage();
int theID;
theID = theDoc.AddImageUrl("http://www.yahoo.com/");
while (true) {
theDoc.FrameRect(); // add a black border
if (!theDoc.Chainable(theID))
break;
theDoc.Page = theDoc.AddPage();
theID = theDoc.AddImageToChain(theID);
}
for (int i = 1; i <= theDoc.PageCount; i++) {
theDoc.PageNumber = i;
theDoc.Flatten();
}
theDoc.Save(Server.MapPath("pagedhtml.pdf"));
theDoc.Clear();