We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

HTML to PDF very slow with Aspose PDF and New conversion engine

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);
doc.Save(strOutFile);

Hi Peter,


Thanks for your inquiry. Please note the processing time depends upon the contents/size of PDF document and system resources, as Aspose.Pdf API does not create any temporary files for its internal processing but memory.

However, please share your sample source files, so we will test the scenario at our end and will provide you more information accordingly.

We are sorry for the inconvenience caused.

Best Regards,