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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Gecko Renderer - Null Pointer Exception

Thread ID:

Created:

Updated:

Platform:

Replies:

110889 Aug 29,2013 11:20 AM UTC Sep 3,2013 05:21 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: PDF
daniel bailey
Asked On August 29, 2013 11:20 AM UTC

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

 


Praveenkumar H [Syncfusion]
Replied On 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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;