Welcome Guest Search | Active Topics | Sign In | Register

Browser engine failed to render page. Failed on command 4 Options
HSEY IT
Posted: Tuesday, May 3, 2016 12:31:34 PM
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()
eo_support
Posted: Tuesday, May 3, 2016 12:35:21 PM
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.aspx

Once we have that we will investigate further.

Thanks!
eo_support
Posted: Tuesday, May 3, 2016 1:27:01 PM
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.aspx

Thanks!
HSEY IT
Posted: Tuesday, May 3, 2016 4:50:29 PM
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...
eo_support
Posted: Tuesday, May 3, 2016 6:08:09 PM
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!
eo_support
Posted: Monday, May 9, 2016 9:42:03 AM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.