Hi i am using this code to create PDF from any image, the problem is that when pdf is generated this will be save on download folder on my windows7 OS.
I want to save this PDF to any folder where i want and i do not want to open save dialog.
I am using this Code...
............................................................
// Create a PDF Document
Document document = new Document();
// Specify document as tagged PDF
document.Tag = new TagOptions();
// Create a page and add it to the document
Page page = new Page();
document.Pages.Add(page);
// Create a label and add it to the page
page.Elements.Add(new Label("Mouse over the image to see alternate text", 100, 220, 300, 100, Font.Helvetica, 15f));
// Create an image
// Image image = new Image(Server.MapPath("../Images/BMP_Image1.bmp"), 250f, 350f, 0.24f);
Image image = new Image(Server.MapPath("../Images/images2.bmp"), 250f, 350f, 0.24f);
// Set alternate text to the image
image.AlternateText = "DynamicPDF Logo";
// Image is sized and centered in the rectangle
image.SetBounds(200, 200);
image.VAlign = VAlign.Center;
image.Align = Align.Center;
// Add image to the page
page.Elements.Add(image);
// Outputs the document to the current web page
document.DrawToWeb("Image.pdf",true);
//document.dr