I have several thousands of HTML files that are designed for and work only in IE 7, 8 and 9.
When I try to convert these to using c# with the code below, they are not properly converted. (i.e. they are converted similar to how it is displayed in IE 11 which is not what's needed).
Link to HTML file:
https://www.dropbox.com/s/8mzln3jjify4yi0/input.zip?dl=0
If you open the HTML file with the current version of IE and go to Developer Tools within IE and emulate IE 7, 8 or 9, the HTML page is displayed properly.
Code:
String basePath = "C:\\temp\\";
HtmlLoadOptions htmloptions = new HtmlLoadOptions(basePath);
// Load HTML file
Document doc = new Document("input.htm", htmloptions);
// Save HTML file
doc.Save("output.pdf");
How can I get the HTML files to be converted to PDF exactly like how they look in IE 7, 8 or 9? Are there any options or parameters that can be changed to make them convert properly as needed?