Hi suprithi,

On 28 November 2012 06:39, <[email protected]> wrote:

> hello,
>
> I want to convert from html to pdf with images.Images are showing
> perfect in html but they are not in pdf.The pdf file will show by
> clicking a button.
> My code is here:
>   protected void btnExport_Click(object sender, EventArgs e)
>      {
>          Response.ContentType = "application/pdf";
>          Response.AddHeader("content-disposition",
> "attachment;filename=TestPage.pdf");
>          Response.Cache.SetCacheability(HttpCacheability.NoCache);
>          StringWriter sw = new StringWriter();
>          HtmlTextWriter hw = new HtmlTextWriter(sw);
>
>          divToConvert.RenderControl(hw);
>
>          StringReader sr = new StringReader(sw.ToString());
>
>          Document pdfDoc = new Document(PageSize.A4, 10f, 10f, 100f, 0f);
>          HTMLWorker htmlparser = new HTMLWorker(pdfDoc);
>          PdfWriter.GetInstance(pdfDoc, Response.OutputStream);
>          pdfDoc.Open();
>          htmlparser.Parse(sr);
>          pdfDoc.Close();
>          Response.Write(pdfDoc);
>          Response.End();
>      }
>
>
> here is my div:
>

[...]


> Please give me the solution by today.
>

You are sending your question to a free support mailing list.
Moreover, you are using some old, unsupported version of iText (since you
are using HTMLWorker instead of XMLWorker).

In these conditions, you really should not expect an answer, specially not
in 24 hours.

For premium support, please check
< http://itextpdf.com/support.php >

Cheers,
alexis
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
INSIGHTS What's next for parallel hardware, programming and related areas?
Interviews and blogs by thought leaders keep you ahead of the curve.
http://goparallel.sourceforge.net
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to