|
Rank: Member Groups: Member
Joined: 8/26/2014 Posts: 20
|
I just upgraded to EO.2016 as our E0.2014 stopped functioning on Windows 10. I am getting two errors:
1) Conversion failed - Browser engine failed to render page. 2) Failed to initialize "image manager".
This is a very simple conversion program of HTML to PDF.
The second error show up only after trying the conversion a few times. I am now concerned that the component is not stable as it is giving inconsistent errors (let alone convert the HTML successfully).
|
|
Rank: Member Groups: Member
Joined: 8/26/2014 Posts: 20
|
FYI - The second error is "Failed to start image manager".
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi, We are not aware of such problems. Please check if you have any AntiVirus program running on your computer and if you do, temporarily disable it and see if it helps. If you continue to have problems, please try two things: 1. Try to use the latest EO.Pdf 2015 instead. That version has been out for a while. You can download a license key for 2015 from your license key page and download the binaries from nuget. If you prefer to use the standalone installer, please let us know and we will be happy to provide that; 2. Try to isolate the problem into a separate test application and see if you can reproduce the problem on a different machine. If you can reproduce it, please send the repro project to us and we will be happy to investigate further. See here for more information on how to send repro to us: http://www.essentialobjects.com/forum/test_project.aspxIf none of those helps, we may need to remotely connect to your system to investigate further. Thanks
|
|
Rank: Member Groups: Member
Joined: 8/26/2014 Posts: 20
|
I just tried again today, so I can get you a full call stack, but I cannot reproduce the error!
Can you confirm that EO.2014 on Windows 10 causes LoadLibrary/GetProcAddress errors? Will these errors occur on Windows 7 and Windows 8.1 (we have clients on these platforms) Will EO.2014 work Windows 2012 R2 (also have clients on this platform)?
I will try with EO.2015 as it has been around for a while. Can you confirm that we need the following references for HTML to PDF conversion:
* EO.Base * EO.Pdf * EO.WebBrowser
Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
Yes. 2014 on Windows 10 causes LoadLibrary/GetProcAddress error. The same error has also been reported on Windows 8, but not Windows 7. This error has been resolved in 2015.
To use 2015, you only need EO.Base and EO.Pdf. You do NOT need EO.WebBrowser. With 2016, you need EO.Base, EO.Pdf, EO.WebEngine and EO.WebBrowser.
Please feel free to let us know if you still have any questions.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 8/26/2014 Posts: 20
|
It looks like only the latest version (EO.2016) is available on nuget? What do I search for to get EO.2015?
|
|
Rank: Member Groups: Member
Joined: 8/26/2014 Posts: 20
|
Find Package in Nuget shows only the latest version. Please advice on how to get EO.2015. Thanks.
PM> Find-Package -Id EO.Pdf -AllVersions
Id Versions Description -- -------- ----------- EO.Pdf {16.0.7} EO.Pdf for .NET is a
|
|
Rank: Member Groups: Member
Joined: 8/26/2014 Posts: 20
|
On further testing, we found that the error (Conversion failed. Browser engine failed to render page) occurs when the AutoFixX/Y are set to None.
Code: C#
string file = @"anyfile.htm";
string outfile = Path.Combine(Path.GetDirectoryName(file), Path.GetFileNameWithoutExtension(file) + ".pdf");
if (!File.Exists(file)) return;
HtmlToPdfOptions options = new HtmlToPdfOptions() { PageSize = EO.Pdf.PdfPageSizes.A4 };
options.OutputArea = new RectangleF(0.4F, 0.25F,
(options.PageSize.Width - 0.4F - 0.25F), (options.PageSize.Height - 0.4F - 0.25F));
// if autofix/y is set to None, the exception occurs
options.AutoFitX = HtmlToPdfAutoFitMode.None;
options.AutoFitY = HtmlToPdfAutoFitMode.None;
//options.AutoFitX = HtmlToPdfAutoFitMode.ShrinkToFit;
//options.AutoFitY = HtmlToPdfAutoFitMode.ShrinkToFit;
PdfDocument pdf = new PdfDocument();
HtmlToPdfResult result = HtmlToPdf.ConvertUrl(file, outfile, options);
This did not happen in EO.2014. Here is the call stack for your reference:
Code: C#
"EO.Pdf.HtmlToPdfException: Conversion failed. Browser engine failed to render page. ---> System.Exception: Browser engine failed to render page.\r\n at EO.Internal.o4.e()\r\n at EO.Internal.o4.a(a7t A_0, WriteArgDelegate A_1)\r\n at EO.Internal.o4.a(HtmlToPdfOptions A_0, Single A_1, Single A_2, Size A_3, Rectangle A_4, amd A_5, List`1 A_6)\r\n at EO.Internal.a3d.a(String A_0, Single& A_1)\r\n at EO.Internal.a3d.d()\r\n --- End of inner exception stack trace ---\r\n at EO.Pdf.HtmlToPdfException.b(Exception A_0)\r\n at EO.Internal.a3d.d()\r\n at EO.Pdf.HtmlToPdfSession.RenderAsPDF(PdfDocument doc)\r\n at EO.Pdf.HtmlToPdf.ConvertUrl(String url, PdfDocument doc, HtmlToPdfOptions options)\r\n at myproj.Html2PdfStuff.TryConvert2() "
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
Thank you very much for the additional information. We will look into auto fit mode and get back to you as soon as possible.
Nuget does have all older versions. You can go to nuget.org and then search for EO.Pdf, you should see all versions list there.
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
Please download the latest build from our download page (2016.0.17.0). This build fixed this issue.
Thanks!
|
|