I have 2 asp.net chart control which i want to convert to pdf. I am using iTextSharp to convert the images to pdf.
The issue is with the position of images, i want images to come next to other.
i tried to setpagesize but it didnt worked.
Document pdfDoc = new Document(PageSize.A4);
PdfWriter.GetInstance(pdfDoc, Response.OutputStream);
pdfDoc.SetPageSize(iTextSharp.text.PageSize.A4.Rotate());
Chart1.SaveImage(stream, ChartImageFormat.Png);
iTextSharp.text.Image chartImage = iTextSharp.text.Image.GetInstance(stream.GetBuffer());
chartImage.ScalePercent(75f);
pdfDoc.Add(chartImage);
Chart2.SaveImage(stream, ChartImageFormat.Png);
iTextSharp.text.Image chartImage1 = iTextSharp.text.Image.GetInstance(stream.GetBuffer());
chartImage1.ScalePercent(75f);
pdfDoc.Add(chartImage1);