I'm saving a image but I need convert this image to pdf and save It. How can I do this?
Here is the code which I have used:
private void button3_Click(object sender, EventArgs e)
{
SaveFileDialog saveFileDialog1 = new SaveFileDialog();
saveFileDialog1.FileName = "image.bmp";
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
Bitmap bitmap = new Bitmap(this.Width, this.Height);
this.DrawToBitmap(bitmap, this.ClientRectangle);
using (var Stream = saveFileDialog1.OpenFile())
{
bitmap.Save(Stream, ImageFormat.Bmp);
}
}
}