HTML to PDF - Positioning the elements using bootstrap styles - not working

I am trying to convert a HTML file which uses bootstrap styles for positioning the elements in the screen.


I want the PDF to look exactly like how it is rendered in the browser. i.e., Table and chart should appear side by side. But they are rendered one below the other in the PDF.

Input HTML and generated PDF files are attached.
C# Code (for your reference):
var basePath = “E:/Temp/”;
HtmlLoadOptions htmloptions = new HtmlLoadOptions(basePath);
var inputHtmlFile = Path.Combine(basePath, “Input.html”);
var outputFile = Path.Combine(basePath, “Output.pdf”);

Document doc = new Document(inputHtmlFile, htmloptions);
doc.Save(outputFile);

Aspose.PDF Version - 11.6.0
PDF width can grow dynamically based on the content width.

Please advise.


Note: We’ll send the license file, if required.

Hi Dhivya,


Thanks for contacting support.

I have tested the scenario and have managed to reproduce same problem. For the sake of correction, I have logged it as PDFNET-40963 in our issue tracking system. We will further look into the details of this problem and will keep you posted on the status of correction. Please be patient and spare us little time. We are sorry for this inconvenience.