HTML to PDF: angular-gantt chart not displaying correctly

Hello,


I’m trying to convert an angular-gantt chart to PDF but is not having any luck.

Demo gantt chart that I’d like to convert to PDF: Phishing Warning - Plunker

Just to test out to see if Aspose.Pdf can export the HTML properly, i used Chrome to download the complete page with its resources, then try to have Aspose.Pdf generates the PDF.

Please see attachment for demo project.

class Program
{
private static string AsposeLicenseBase64 => “insert base64 license”;
static void Main(string[] args)
{
using (var license = new MemoryStream(Convert.FromBase64String(AsposeLicenseBase64)))
{
var pdfLicense = new License();
pdfLicense.SetLicense(license);
}

//goal: i want to convert an angular-gantt chart to pdf
//in this example, i used chrome to open the above URL, press Ctrl+S to save the webpage (complete with resources)
//then use the codes below to generate the PDF, however, the output does not look like how it is displayed
//is there anything else I can do differently?
//note: see the /bin/Debug folder for the html file and its resources

var htmloptions = new HtmlLoadOptions();
var doc = new Document(“lrC5RFfeItMA5JCVMVWF.html”, htmloptions);
doc.Save(“output.pdf”);
}
}

Hi Minh,

Thanks for your inquiry. I have tested HTML to PDF conversion scenario with shared HTML document using Aspose.Pdf for .NET 11.5.0 and managed to observe the reported issue. For further investigation, I have logged an issue in our issue tracking system as PDFNEWNET-40560 and also linked your request to it. We will keep you updated via this thread regarding the issue status.

We are sorry for the inconvenience caused.

<span style=“font-size:10.0pt;line-height:115%;font-family:“Arial”,“sans-serif”;
mso-fareast-font-family:Calibri;color:#333333;mso-ansi-language:EN-US;
mso-fareast-language:EN-US;mso-bidi-language:AR-SA”>Best Regards,