1

やあ、私は大きな html 形式のテキストを持っています。テキストをページ単位で表示したい (MS Word のように)。これを行う方法はありますか?

4

1 に答える 1

2

最良の方法は、コンポーネントを含む PDF でレンダリングすることです ( WebSuperGooまたは他のソリューションの ABCPdf にすることができます) 。

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(); 
于 2009-11-26T19:44:55.567 に答える