Hi,
GetPDFLicense();
htmlStr = htmlStr.Replace("", "&"); (// is this necessary)
Aspose.Pdf.Generator.Pdf pdf1 = new Pdf();
Aspose.Pdf.Generator.Section section = pdf1.Sections.Add();
Text text2 = new Text(section, htmlStr);
text2.IsHtmlTagSupported = true;
section.Paragraphs.Add(text2);
this.Context.Response.ContentType = "application/pdf";
pdf1.Save(this.Context.Response.OutputStream);
Here is a snippet of my HTML :
html, body {
width:100%;
font-family:Arial, Helvetica, sans-serif;
}
table {
width:650px;
border:1px solid #000;
}
.header {
background-color:#ccc;
text-align:center;
padding:2px;
font-size:12px;
font-weight:bold;
}
Erin Test 2-25 | |||||
Customer Name:FIBERTOWER ATC Asset
Name:CRYSTAL MOUNTAIN ATC
Asset
#:88768
| |||||
GROUND SPACE REQUIREMENTS | |||||
Total Lease AreaSq. Ft.240.0 | Primary Contiguous Lease Area | L:12.0 | W:20.0 | H: | Sq. Ft:240.0 |