Document document;
document = new Document();
ceTe.DynamicPDF.Page page;
page = new ceTe.DynamicPDF.Page(PageSize.Letter, PageOrientation.Portrait, 54f);
ceTe.DynamicPDF.PageElements.Label label;
label = new ceTe.DynamicPDF.PageElements.Label("Test Document", 0, 0, 100, 100, Font.Helvetica, 18, ceTe.DynamicPDF.TextAlign.Center);
page.Elements.Add(label);
document.Pages.Add(page);
document.DrawToWeb("test.pdf");
I run a simple page like this in the Page_Load, nothing displayed. change DrawToWeb to force download, then the result document is damaged and could not be repaired.
am i missing something?
error occured in the simplest demo
Re: error occured in the simplest demo
Support · Oct 30, 2006Hello,
This could be caused by some text getting output after the PDF stream. The easiest solution is to add a Response.End() directly after the Document's DrawToWeb method or by removing the extra HTML tags. This will prevent anything from being output after the PDF.
Thanks,
ceTe Software Support Team.
Re: error occured in the simplest demo
Forum member · Oct 30, 2006that works. thx