2009-04-17 5 views

Antwort

2

Der beste Weg wäre es in einem PDF mit Komponente wird Rendering (kann ABCPdf from WebSuperGoo oder andere Lösung sein)

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(); 
Verwandte Themen