-1

Here is my code. i want to save the image in pdf file and how to save that pdf file in server map path or any location using .net mvc3

PdfDocument doc = new PdfDocument();

    PdfPage page = doc.Pages.Add();
    PdfGraphics graphics = page.Graphics;
    string ImageFilePath = Server.MapPath("Chart.png");
    PdfImage pdfimage = PdfImage.FromFile(ImageFilePath);
    graphics.DrawImage(pdfimage, 10, 10);

Any one help me..

Thanks, Bharathi.

1 Answers1

0

Use iTextSharp to do it. You can refer to this other question or there is a good guide here

Community
  • 1
  • 1
Rachel Gallen
  • 27,943
  • 21
  • 72
  • 81
  • Sorry it is not helped me.. i am using above code.. i save the image in pdf file.. then now need to save that pdf file.. what is the code to save the pdf file – BharathiRaja May 10 '13 at 09:29