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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

how can i convert a url address like "http://google.com" to pdf?

Thread ID:

Created:

Updated:

Platform:

Replies:

125389 Aug 12,2016 05:09 AM Aug 15,2016 03:23 AM ASP.NET MVC 1
loading
Tags: PDF
tmzl
Asked On August 12, 2016 05:09 AM

I want to convert a link to pdf, but threw exception。"not found Syncfusion.Pdf.PdfDocument Syncfusion.HtmlConverter.HtmlToPdfConverter.Convert(System.String)"

“System.MissingMethodException”类型的未经处理的异常在 mscorlib.dll 中发生 

其他信息: 找不到方法:“Syncfusion.Pdf.PdfDocument Syncfusion.HtmlConverter.HtmlToPdfConverter.Convert(System.String)”。

public void HtmlToFile()
        {
            //Initialize HTML to PDF converter
            Thread t = new Thread(CreateDocument);
            t.SetApartmentState(ApartmentState.STA);
            t.Start();
            t.Join();
        }
 
        public void CreateDocument()
        {
            HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter();
            //Convert HTML to PDF document
 
            PdfDocument document = htmlConverter.Convert("http://www.google.com");
 
            //Save and close the PDF document
 
            document.Save("Output.pdf");
 
            document.Close(true);
        }






Karthik Krishnaraj [Syncfusion]
Replied On August 15, 2016 03:23 AM

Hi tmzl develop, 
We have created a support incident under your DT account to track the reported issue.                                            
Please log on to our support website for further updates. 
Thanks, 
Karthik. 


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

;