Timeout saving www.microsoft.com as a PDF

The following always appears to generate an exception after about 40 seconds: "System.Net.WebException: The operation has timed out."

var pdf = new Pdf();

pdf.BindHTMLFromUrl("http://www.microsoft.com/");

pdf.Save(@"c:\TestData\ConvertedUrl.pdf");

Hi,

I have tested this and found that although this code works with other websites but has problems with microsoft website. I have logged this as PDFNET-4609 in our issue tracking system. We will try our best to figure out the cause of this problem and try to rectify it as soon as possible.

Thanks.

I also tried it with a couple of other URLs at random:

http://www.mnweekly.ru/
http://www.theregister.co.uk/

Both generate argument exceptions when used in the above code. I imagine there are sometimes objects in web pages that can’t easily be converted to PDF but I would have expected some kind of placeholder instead of an exception.

Hi,

I will discuss this with the developers to see if we can better handle those pages which are not supported.

Thanks.

Hi,

I think the reason is that those sites use default pages and the pages are not included in the url. We will investigate how to support this.