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