|
Rank: Member Groups: Member
Joined: 9/5/2013 Posts: 10
|
We are occasionally getting the error "Browser engine failed to render page. Failed on command 4" when trying to convert html to a pdf. I noticed that 16.0.55 supposedly fixed this issue, but we were on that version. I tried upgrading to 16.0.70 but still got the same error. Here is the stack trace that we were seeing:
at EO.Pdf.HtmlToPdfException.b(Exception A_0) at EO.Internal.a3e.d() at EO.Pdf.HtmlToPdfSession.RenderAsPDF(PdfDocument doc) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options)
Internal stack trace:
at EO.Internal.o4.a(String A_0) at EO.Internal.o4.a(e A_0, a7v A_1, WriteArgDelegate A_2) at EO.Internal.o4.a(HtmlToPdfOptions A_0, Single A_1, Single A_2, Size A_3, Rectangle A_4, amf A_5, List`1 A_6) at EO.Internal.a3e.a(String A_0, Single& A_1) at EO.Internal.a3e.d()
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi, In that case please try to isolate the problem into a test project and send us the test project. See here for more details: http://www.essentialobjects.com/forum/test_project.aspxOnce we have that we will investigate further. Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi, We have received your test project. This is an out of memory error caused by the number of high resolution image used in the HTML. Please set this property to true to avoid this problem: http://www.essentialobjects.com/doc/eo.base.runtime.enablelargeaddressspace.aspxThanks!
|
|
Rank: Member Groups: Member
Joined: 9/5/2013 Posts: 10
|
That did allow me to generate the pdf, but the resulting pdf is almost 300MB, even with JpegQualityLevel set to 1, PreserveHighResImages set to false, and SaveImageAsJpeg set to true. Is there anything else that I can do to compress the pdf? The pdf size is not changing between JpegQualityLevels 1 and 75...
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Yes. The JpegQualityLevel is another issue that will be fixed in our next build, which will be posted later this week or during the weekend. Sorry about the problem!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
This is just to let you know that we have posted a new build with the JpegQualityLevel fix. Please download the new build and let us know if you still see any problems.
Thanks!
|
|