I am trying to convert a HTML document to PDF using Aspose PDF for .NET. and HtmlLoadOptions.
If I set UseNewConversionEngine = false, the conversion takes 2 or 3 seconds but the conversion is not very much like the original HTML.
If UseNewConversionEngine = true the output looks quite good, but it takes close to 4 minutes to convert.
I am supplying a base folder which has all the images, scripts and css to the HtmlLoadOptions constructor.
Any help or ideas would be most appreciated.
Here is a code snippet
string strOutFile = “c:/temp/PTest/Output/PDFTest.PDF”;
string strInFile = “c:/temp/PTest/Input/HtmlTest.html”;
HtmlLoadOptions htmloptions = new HtmlLoadOptions(“C:/Temp/PTest/HtmlBase/”);
htmloptions.UseNewConversionEngine = true;
Aspose.Pdf.Document doc = new Aspose.Pdf.Document(strInFile, htmloptions);