We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Gecko Renderer - Null Pointer Exception

Hi,

We have been using Syncfusion 11.2.025 and we have been converting HTML Documents to PDF. In an attempt to improve the PDF Document produce we have been attempting to use gecko renderer.

We followed the install instructions by placing geckowrapper into the XULRunner directory provided and the regsvr31 - path to .dll successfully.

References the DLL in our Application however when we go to convert a String of HTML to PDF a null point exception occurs appears to be within the getImagesFromString method. (Stack Trace below).

at Syncfusion.HtmlConverter.HtmlConverter.GetImagesFromString(String html, String baseUrl, ImageType type)
   at Syncfusion.HtmlConverter.HtmlConverter.Convert(String html, String baseurl, ImageType type, Int32 width, Int32 height, AspectRatio aspectRatio)

I am probably missing something fairly obvious snipet of code below, if I alter the declaration of HTMLConvertor so it does not take the renderer argument then it works fine. result is HTMLToPdfResult and  I have also checked the HTML object contains a string of html therefore confident it is not either of these onbjects.

result = Me.convertor.Convert(HTML, "www.citymainadmin.co.uk", ImageType.Metafile, CType(PdfPageSize.A4.Width, Integer), -1, AspectRatio.KeepWidth)

 

Can anyone be of any help?

 

Kind Regards

 

Daniel

 


1 Reply

PH Praveenkumar H Syncfusion Team September 3, 2013 05:21 AM UTC

Hi daniel,

Thank you for your interest in Syncfusion products.

Could you please report this issue through Direct Trac Developer Support System (https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents because you can take the advantage of the expertise of a dedicated support engineer and a guaranteed response time and we hope you will take advantage of this system as well. If you have already reported, please ignore this.

Regards,
Praveen


Loader.
Live Chat Icon For mobile
Up arrow icon