I m trying to convert URL to PDF
//Convert the Url to PDF
HtmlToPdf.ConvertUrl(myURL, "c:\\test.pdf");
It is taking almost 70-90 seconds approximately in my project. But when I try the same URL in below demo link, it took me only less than 20 seconds.
https://www.essentialobjects.com/Products/EOPdf/UrlToPdf.aspx.I m using the below snipper, I copied the EO.PDF, EO.BASE, EO.WebBrowser and EO.WebENgine as reference.
String url = reportURL;
HtmlToPdf.Options.MinLoadWaitTime = timeout;
HtmlToPdf.Options.PageSize = new SizeF(pageSizeDTO.width, pageSizeDTO.height);
HtmlToPdf.Options.OutputArea = new RectangleF(outputAreaDTO.x, outputAreaDTO.y, outputAreaDTO.width, outputAreaDTO.height);
HtmlToPdf.Options.AutoFitX = HtmlToPdfAutoFitMode.ScaleToFit;
HtmlToPdf.Options.FooterHtmlPosition = outputAreaDTO.footerPosition;
HtmlToPdf.Options.BaseUrl = baseURL;
string tempFilePath = tempPath + fileName;
HtmlToPdf.ConvertUrl(url, tempFilePath);
byte[] bytes = System.IO.File.ReadAllBytes(tempFilePath);
System.IO.File.Delete(tempFilePath);
return bytes;
Any help is appreciated!
Thanks in advance