I have this one HTML doc that will not convert - I get the error "Getting Conversion failed. Browser engine failed to render page. Failed on command 4 Error:"
It is a very long document that uses handlebars.js to build the content and has 5 Google maps on it with several hundred overlaid polygons. I do PDF conversions like these daily, but this one is larger than typical and seems to have choked the HtmlToPdf method.
I am using Eo.PDF 2019. These are my options and settings:
Code: Visual Basic.NET
Options.AutoBookmark = False
Options.BaseUrl = WorkFolder
Options.TriggerMode = EO.Pdf.HtmlToPdfTriggerMode.Auto
Options.PageSize = New SizeF(8.5F, 11.0F)
Options.AutoAdjustForDPI = False
Options.ZoomLevel = 0.742
Options.MaxLoadWaitTime = 900000
Options.AutoFitX = HtmlToPdfAutoFitMode.None
Options.OutputArea = New RectangleF(Template.Margins.Left, Template.Margins.Top, Template.Margins.Width, Template.Margins.Height)
Options.JpegQualityLevel = 50
Options.MinLoadWaitTime = 5000
Options.FirstPageNumber = 1
HtmlToPdf.DebugConsole = Console.Out
EO.Base.Runtime.EnableEOWP = True
Options.FooterHtmlFormat = ReplaceFieldsHTML(ReadFile(Template.Path & Template.SectionDefaults.Footer.File), 0)
Options.FooterHtmlPosition = Template.SectionDefaults.Footer.Margins.Top
My actual command is rather simple:
Code: Visual Basic.NET
doc = New PdfDocument()
result = EO.Pdf.HtmlToPdf.ConvertHtml(HTML, doc, Options)
This is a link to the html file in case anyone want to get their hands dirty:
https://www.dropbox.com/s/n53irxw5vx9qvw7/HtmlToPdfError.zip?dl=0I am unsure how to proceed to debug this. Any help on what my next steps should be would be appreciated.