Hi.
I am trying to implement the HtmlToPdfConverter using the WebKit engine.
I have been able to make it work just fine in my development machine, but when I deploy it to the server (Google Cloud Windows Server 2012R2), I get the error below:
PdfException
An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)Source : Syncfusion.HtmlConverter.BaseStack Trace: at Syncfusion.HtmlConverter.WebKitConverter.CheckConversionDone(String tempFilePath) at Syncfusion.HtmlConverter.WebKitConverter.Convert(String url, Int32 width, Int32 height) at Syncfusion.HtmlConverter.HtmlToPdfConverter.Convert(String url)
I have installed VC++ from the documentation link.
The files for OpensSSL are present in my Windows system folders, except for the libssl32.dll. So I downloaded the OpenSSL (also from the link provided in the documentation page) and run it. However, it complains the C++ 2008 is not installed, but it is, see image attached.
Anyway, since libeay32.dll and ssleay32.dll are present in the folders, I run the application to see if it would work, but nope, I get the error above.
If I use the Blink engine, it works fine, but it is almost double slower and the final PDF image quality is not the same, so I would rather try to make the WebKit work in the server, since it works in my dev machine.
Would you guys have any advice on what I could try in my server?
Thanks in advance.
Ivan
Hi Gowthamraj.
Thanks for the reply.
Maybe I didn't understand well, but I attached a picture showing my server's installed Programs and we can clearly see the that the VC++ 2010 are installed. Maybe you missed that, but if not, please let me know what I could do.
I have permission to install anything on this server, I have an Admin account. There is no message stating I can't install OpenSSL, the message says VC++ 2008 is not installed, which you can check from the same picture that it is.
I also tried this on a third machine, a simple Windows 10 notebook, just to make sure, and the OpenSSL you guys provide won't install either.
Also, in the documentation ( https://help.syncfusion.com/file-formats/pdf/convert-html-to-pdf/webkit ) it says we need libssl32.dll in the Windows system folder. Unfortunately, your OpenSSL installation version don't have that. More, my machine where Syncfusion is installed doesn't have that and everything works.
So, in face of all this, would you have any other idea of what I could try?
Than
Here are the files in their respective folders in my server. ( libssl32.dll isn't there since I don't have it, not even in my dev machine, where it works fine).
Hi Gowthamraj.
Any word about this?
Hi Gowthamraj.
Thanks for the reply.
I will see what I can do. It is a production server and people around here get really nervous about tweaking with it. I would just really like it to throw your DLLs in the bin folder and that it worked... but, I will find a way for us to remotely connect, I hope.
On the other hand, we might as well decide for your next version including optimization of the Blink engine. Do you think you guys are going to achieve a good outcome?
Cheers.
Ivan
Hi Gowthamraj.
No, I didn't say I resolved the problem, it is still there.
What I said is that I would probably wait for the next release instead of messing with the server.
Thank you for the link with the status information.
Best.
Ivan
Hi Gowthamraj.
Brilliant!!!
Your VC++ DLLs worked.
Thank you!
Ivan