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.