Rank: Member Groups: Member
Joined: 1/16/2019 Posts: 10
|
IssueA customer reported that converting HTML to PDF using EO.Pdf.HtmlToPdf.ConvertHtml fails intermittently with the following error: Operation timed out while waiting for the page to be loaded, taskId = 2 Call Stack
Code: C#
Operation timed out while waiting the page to be loaded, taskId = 2
bei System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
bei System.Environment.get_StackTrace()
bei EO.Base.BaseException..ctor(String ltc, Exception ltd)
bei EO.Pdf.HtmlToPdfException..ctor(HtmlToPdfErrorCode ace, Int32 acf, String acg, Exception ach)
bei EO.Pdf.HtmlToPdfException.hswm(String acn)
bei EO.Internal.olke.lreb(String bvs)
bei EO.Internal.olke.iddm(olfn but, String buu, String buv, Int32 buw, Int32 bux, String buy, Boolean buz)
bei EO.Internal.olke.sbsx(olfn bul, String bum, HtmlToPdfOptions bun, String buo, Int32 bup, Int32 buq, String bur, Boolean bus)
bei EO.Pdf.HtmlToPdfSession.sbsx(olfn abb, String abc, String abd, Int32 abe, Int32 abf, String abg, Boolean abh)
bei EO.Pdf.HtmlToPdfSession.sbsx(olfn abi, String abj, String abk, Boolean abl)
bei EO.Pdf.HtmlToPdfSession.LoadHtml(String html)
bei EO.Pdf.HtmlToPdf.pbqj.rwhj(HtmlToPdfSession aee)
bei EO.Pdf.HtmlToPdf.kxxr(HtmlToPdfOptions adz, gcod`2 aea, Boolean aeb)
bei EO.Pdf.HtmlToPdf.kxxq(HtmlToPdfOptions adx, gcod`2 ady)
bei EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options)
EO.Pdf.HtmlToPdf.ConvertHtml call:
Code: C#
private const int PagePaddingTop = 28;
private const int PagePaddingBottom = 24;
private const int PagePaddingLeft = 17;
private const int PagePaddingRight = 17;
var options = new HtmlToPdfOptions
{
HeaderHtmlFormat = pageHeader,
FooterHtmlFormat = "<div style=\"text-align:right;\">" + cl0Page + " {page_number} / {total_pages}</div>",
AutoBookmark = true,
FirstHeaderFooterPageIndex = 1,
RepeatTableHeaderAndFooter = true,
PageSize = PdfPageSizes.A4,
OutputArea = new RectangleF(MmToInch(PagePaddingLeft), MmToInch(PagePaddingTop),
PdfPageSizes.A4.Width - MmToInch(PagePaddingRight + PagePaddingLeft),
PdfPageSizes.A4.Height - MmToInch(PagePaddingTop + PagePaddingBottom))
};
var doc = new PdfDocument();
var result = EO.Pdf.HtmlToPdf.ConvertHtml(reportText, doc, options);
EnvironmentEO.PDF version: 25.0.50 .NET version: .NET Framework 4.7.2 Cpu: 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz OS: Microsoft Windows NT 10.0.26200.0 ClrVersion: 4.0.30319.42000 Could you help identify the possible cause of this issue? If you need any additional details or logs, please let me know—I’ll be happy to provide them. Thank you!
|
Rank: Member Groups: Member
Joined: 1/16/2019 Posts: 10
|
Hi EO team, any updates on this issue? Your feedback would help us move forward. We’ve seen similar problems often, and while switching from EO.PDF to an alternative is an option, we’d prefer to resolve this first. Looking forward to your thoughts!
|