Ajish,
Does this work from an ASP.NET application?
I get an error saying the activex control needs to be in a single threaded appartment.
>
>Hi Shiv,
>
>In Essential PDF WebPages and HTML pages can be imported to PDF with the help of HtmlConverter.Base.dll. The HTMLConverter uses the MSHTML rendering library to render HTML documents. The MSHTML library is the that is engine used to drive the Internet Explorer.
>
>Here is code for converting URL to PDF
>
>
>// Covert HTML/URL’s to PDF.
>
>HtmlConverter htmlDoc= new HtmlConverter();
>Image docImg = htmlDoc.ConvertToImage( URL, ImageType.Metafile);
>doc.LastPage.Graphics.DrawImage( PointF.Empty, docImg, dest, properties );
>
>
>
>This conversion takes place in the following steps,
>
>1) Convert the URL/HTML document to an image
>2) Insert the image into the pdf document.
>
>The Image can be Metafile or Bitmap. Converting to Metafile leaves the contents in the document searchable.
>
>Here is a sample for your reference:
HTMLToPDF.zip
>
>Please take a look at this sample and let me know if have any other questions.
>
>Thanks,
>Ajish.
>
>
>>I seem to remember seeing the the ability to render html pages (given a url) into pdf documents is now supported. However, I can''t seem to find where/how?
>>
>>Can someone help me please?
>>
>>Thanks.
>>Shiv.