Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Wed Nov 30, 2016 10:04 am

Hi,

I am using the following Spire.Pdf code to convert an HTML string to an image (the string contains some Hebrew text).
Code: Select all
                    HtmlConverter Converter = new HtmlConverter();
                    Image ResultImage = Converter.FromString(Source, ImageType.Metafile, Width);

This code is working on of our Windows 7 and Windows 2008 servers. But, on our Windows 2012 servers, it is throwing this mysterious exception:
Conversion Failed., stacktrace = at Spire.Pdf.HtmlConverter.HtmlConverter.GetImagesFromString(String html, String baseUrl, ImageType type) at Spire.Pdf.HtmlConverter.HtmlConverter.?(String A_0, ImageType A_1)

Is there something missing on Windows 2012 that might be causing this error? I am using the latest hotfix version 3.8.82. I also tried ImageType.Bitmap and it was the same result. Is there any way to get more information about why the conversion is failing? Please advise.

Thank you,
-Ed

Yurst
 
Posts: 1
Joined: Tue Jun 28, 2016 10:32 am

Thu Dec 01, 2016 6:52 am

Dear Ed,

Thanks for your inquiry.
I have tested the scenario on Windows 2012 server, but didn't encounter the issue you mentioned.
Could you please provide us following information to help us investigate this issue ?
1)HTML code, the better to provide us a sample project.
2)the detailed OS information of Windows 2012 server.
3)compare the applications installed on Windows 2012 server with the applications installed other systems which work fine, tell us what is different.
And did you deploy the application on IIS ?

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue Dec 06, 2016 7:34 am

Dear Ed,

How is the issue now ? Could you please give us some feedback at your convenience ?

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.PDF