Still same issue with the indentation. The bullets do look better with regard to spacing between the bullet and the text, but same issue exists that no indention occurs. The PDF is not rendered same as HTML is rendered with the indent. The specific style setting ("list-style-position: inside) is supposed to render the bullets with an indent as it does in HTML. Please see attached HTML file and also the attached PDF in ZIP file. Below is the code utilized to create the PDF:
public void HTMLToPDF(String strHTML, String pdfFileName)
{
Aspose.Pdf.License pdfLic = new Aspose.Pdf.License();
pdfLic.SetLicense(@"C:\Aspose.Total.lic");
Aspose.Pdf.Generator.Pdf pdf = new Aspose.Pdf.Generator.Pdf();
//Need to be exposed as Properties:
pdf.PageSetup.PageWidth = 612F;
pdf.PageSetup.PageHeight = 792F;
pdf.PageSetup.Margin.Top = 21.6F;
pdf.PageSetup.Margin.Bottom = 54F;
pdf.PageSetup.Margin.Left = 72F;
pdf.PageSetup.Margin.Right = 72F;
// add the section to PDF document sections collection
Aspose.Pdf.Generator.Section section = pdf.Sections.Add();
// Read the contents of HTML file into StreamReader object
Aspose.Pdf.Generator.Text text2 = new Aspose.Pdf.Generator.Text(section, strHTML);
// enable the property to display HTML contents within their own formatting
text2.IsHtmlTagSupported = true;
//Add the text paragraphs containing HTML text to the section
section.Paragraphs.Add(text2);
// Specify the URL which serves as images database
String strPath = Path.GetDirectoryName(pdfFileName);
pdf.HtmlInfo.ImgUrl = strPath;
//Save the pdf document
pdf.Save(pdfFileName);
}
Please let me know if you need anything else to aid in your fix of this issue. Thanks.