Last post Oct 19, 2016 12:04 PM by rogue1
Oct 19, 2016 12:04 PM|rogue1|LINK
I dont no iif you can do this but i have saved an image into a word file no probelm then i want to convert it to pdf using apose.words but its returning a unopenable file in the pdf version and blank in file silze.
protected void convertImageToPdf(string path,string filename)
Aspose.Words.License license = new Aspose.Words.License();
// This creates a builder and also an empty document inside the builder.
Aspose.Words.Document doc = new Aspose.Words.Document();
DocumentBuilder builder = new DocumentBuilder(doc);
// Insert a raster image.
System.Drawing.Image rasterImage = System.Drawing.Image.FromFile(path + @"\" + filename);
builder.Write("Raster image: ");